Original author: Pierre Sarrazin. Public-domain library and demo. Source: http://sarrazip.com/dev/cardgame-0.1.15.tar.gz Archive SHA-256: ca706dddd96fec63b829f8958c2e47485b0e1166129d45fda0b6369404c1bb54
21 lines
393 B
C
21 lines
393 B
C
/* setScreenBuffer.c
|
|
|
|
By Pierre Sarrazin <http://sarrazip.com/>.
|
|
This file is in the public domain.
|
|
*/
|
|
|
|
#include "pmode4game.h"
|
|
|
|
|
|
void
|
|
setScreenBuffer(void *screen)
|
|
{
|
|
scrnBuffer = (byte *) screen;
|
|
#ifndef OS9
|
|
if (isCoCo3 && emulatingPMode4OnCoCo3)
|
|
* (void **) 0xFF9D = 0xE000 | (screen >> 3);
|
|
else
|
|
showGraphicsAddress(6, (byte) (screen >> 9));
|
|
#endif
|
|
}
|