diff options
Diffstat (limited to 'backends/PalmOS/Src/arm/copy_rect.cpp')
-rw-r--r-- | backends/PalmOS/Src/arm/copy_rect.cpp | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/backends/PalmOS/Src/arm/copy_rect.cpp b/backends/PalmOS/Src/arm/copy_rect.cpp index 64aa1df69c..c6a634f48c 100644 --- a/backends/PalmOS/Src/arm/copy_rect.cpp +++ b/backends/PalmOS/Src/arm/copy_rect.cpp @@ -1,17 +1,16 @@ -#include "PACEInterfaceLib.h" #include "ArmNative.h" #include "endianutils.h" #include "../shared.h" -unsigned long OSystem_PALMOS_copy_rect(void *userData68KP) { - UInt8* dataP = (UInt8 *)userData68KP; +void O_CopyRectToScreen(void *userData68KP) { + OSysCopyPtr dataP = (OSysCopyType *)userData68KP; - UInt8 *dst = (UInt8 *)ReadUnaligned32(dataP + 2); // ->dst - UInt8 *buf = (UInt8 *)ReadUnaligned32(dataP + 6); // ->buf - UInt32 pitch = ReadUnaligned32(dataP + 10); // ->pitch - UInt32 _offScreenPitch = ReadUnaligned32(dataP + 14); // ->_offScreenPitch - UInt32 w = ReadUnaligned32(dataP + 18); // ->w - UInt32 h = ReadUnaligned32(dataP + 22); // ->h + UInt8 *dst = (UInt8 *)ReadUnaligned32(&(dataP->dst)); + UInt8 *buf = (UInt8 *)ReadUnaligned32(&(dataP->buf)); + UInt32 pitch = ReadUnaligned32(&(dataP->pitch)); + UInt32 _offScreenPitch = ReadUnaligned32(&(dataP->_offScreenPitch)); + UInt32 w = ReadUnaligned32(&(dataP->w)); + UInt32 h = ReadUnaligned32(&(dataP->h)); if (_offScreenPitch == pitch && pitch == w) { MemMove(dst, buf, h * w); @@ -22,6 +21,4 @@ unsigned long OSystem_PALMOS_copy_rect(void *userData68KP) { buf += pitch; } while (--h); } - - return 0; -}
\ No newline at end of file +} |