scummvm/backends/PalmOS/Src/arm/screendraw.cpp
Chris Apers 7a4f4889a9 - Better ARM support
svn-id: r16174
2004-12-20 17:38:31 +00:00

24 lines
461 B
C++
Executable file

#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;
}