diff options
author | Johannes Schickel | 2012-06-20 17:13:12 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-20 17:13:12 +0200 |
commit | ac8f282ce1814bd087ca1127afc2f3a4b3cec294 (patch) | |
tree | 1e5934cfc2116c36d017388c0cfa458bfbbbe2a4 /backends/platform/iphone | |
parent | 4fb9bceabc4309a477472aa55207eae55bc0aa13 (diff) | |
download | scummvm-rg350-ac8f282ce1814bd087ca1127afc2f3a4b3cec294.tar.gz scummvm-rg350-ac8f282ce1814bd087ca1127afc2f3a4b3cec294.tar.bz2 scummvm-rg350-ac8f282ce1814bd087ca1127afc2f3a4b3cec294.zip |
IPHONE: Replace OverlayColor uses with uint16.
Diffstat (limited to 'backends/platform/iphone')
-rw-r--r-- | backends/platform/iphone/osys_video.mm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/iphone/osys_video.mm b/backends/platform/iphone/osys_video.mm index b01c925024..aa1856490f 100644 --- a/backends/platform/iphone/osys_video.mm +++ b/backends/platform/iphone/osys_video.mm @@ -316,7 +316,7 @@ void OSystem_IPHONE::grabOverlay(void *buf, int pitch) { byte *dst = (byte *)buf; const byte *src = (const byte *)_videoContext->overlayTexture.getBasePtr(0, 0); do { - memcpy(dst, src, _videoContext->overlayWidth * sizeof(OverlayColor)); + memcpy(dst, src, _videoContext->overlayWidth * sizeof(uint16)); src += _videoContext->overlayTexture.pitch; dst += pitch; } while (--h); @@ -329,7 +329,7 @@ void OSystem_IPHONE::copyRectToOverlay(const void *buf, int pitch, int x, int y, //Clip the coordinates if (x < 0) { w += x; - src -= x * sizeof(OverlayColor); + src -= x * sizeof(uint16); x = 0; } @@ -354,7 +354,7 @@ void OSystem_IPHONE::copyRectToOverlay(const void *buf, int pitch, int x, int y, byte *dst = (byte *)_videoContext->overlayTexture.getBasePtr(x, y); do { - memcpy(dst, src, w * sizeof(OverlayColor)); + memcpy(dst, src, w * sizeof(uint16)); src += pitch; dst += _videoContext->overlayTexture.pitch; } while (--h); |