mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 00:42:24 +00:00
IPHONE: Replace OverlayColor uses with uint16.
This commit is contained in:
parent
4fb9bceabc
commit
ac8f282ce1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user