aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-22 02:49:14 +0100
committerJohannes Schickel2012-02-22 02:49:14 +0100
commit6c64fdf4f2e862a15ebd3e336445a89c10deb723 (patch)
tree12681386c0567c592cca4342afe8a64d43483ffe
parent0e182a958737dbaaf7ecc92100d937cadf8b20b7 (diff)
downloadscummvm-rg350-6c64fdf4f2e862a15ebd3e336445a89c10deb723.tar.gz
scummvm-rg350-6c64fdf4f2e862a15ebd3e336445a89c10deb723.tar.bz2
scummvm-rg350-6c64fdf4f2e862a15ebd3e336445a89c10deb723.zip
IPHONE: Very minor cleanup.
-rw-r--r--backends/platform/iphone/iphone_video.mm6
1 files changed, 2 insertions, 4 deletions
diff --git a/backends/platform/iphone/iphone_video.mm b/backends/platform/iphone/iphone_video.mm
index 0de1a80b15..86365cbefe 100644
--- a/backends/platform/iphone/iphone_video.mm
+++ b/backends/platform/iphone/iphone_video.mm
@@ -136,15 +136,13 @@ void iPhone_updateScreen(int mouseX, int mouseY) {
}
void iPhone_updateScreenRect(unsigned short *screen, int x1, int y1, int x2, int y2) {
- int y;
- for (y = y1; y < y2; ++y)
+ for (int y = y1; y < y2; ++y)
memcpy(&_gameScreenTextureBuffer[(y * _gameScreenTextureWidth + x1) * 2], &screen[y * _width + x1], (x2 - x1) * 2);
}
void iPhone_updateOverlayRect(unsigned short *screen, int x1, int y1, int x2, int y2) {
- int y;
//printf("Overlaywidth: %u, fullwidth %u\n", _overlayWidth, _fullWidth);
- for (y = y1; y < y2; ++y)
+ for (int y = y1; y < y2; ++y)
memcpy(&_overlayTexBuffer[(y * _overlayTexWidth + x1) * 2], &screen[y * _overlayWidth + x1], (x2 - x1) * 2);
}