blob: 75495d3daf76974702b6f3f3a4600d8ec56df47f (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 | #include "native.h"
#include "endianutils.h"
#define MAIN_TYPE	DrawType
#include "macros.h"
UInt32 Screen_draw(void *userData68KP) {
// import variables
	SET16	(UInt16,	_scrnSizeX	);
	SET16	(UInt16,	_scrnSizeY	);
	SETPTR	(UInt8 *	,src		);
	SETPTR	(UInt8 *	,dest		);
// end of import
	for (uint16 cnty = 0; cnty < _scrnSizeY; cnty++)
		for (uint16 cntx = 0; cntx < _scrnSizeX; cntx++) {
			if (*src)
				*dest = *src;
			dest++;
			src++;
		}
		
	return 0;
}
 |