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

30 lines
544 B
C++

#include "native.h"
#include "endianutils.h"
#include "../shared.h"
#define MAIN_TYPE WideType
#include "macros.h"
UInt32 OSystem_updateScreen_wideLandscape(void *userData68KP) {
// import variables
SETPTR(UInt8 * ,dst)
SETPTR(UInt8 * ,src)
// end of import
Coord x, y;
for (y = 0; y < WIDE_HALF_HEIGHT; y++) {
// draw 2 lines
for (x = 0; x < WIDE_FULL_WIDTH; x++) {
*dst++ = *src++;
*dst++ = *src;
*dst++ = *src++;
}
// copy the second to the next line
MemMove(dst, dst - 480, 480);
dst += 480;
}
return 0;
}