diff options
Diffstat (limited to 'backends/PalmOS/Src/arm/screendraw.cpp')
-rwxr-xr-x | backends/PalmOS/Src/arm/screendraw.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/backends/PalmOS/Src/arm/screendraw.cpp b/backends/PalmOS/Src/arm/screendraw.cpp new file mode 100755 index 0000000000..75495d3daf --- /dev/null +++ b/backends/PalmOS/Src/arm/screendraw.cpp @@ -0,0 +1,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; +} |