From 6c64fdf4f2e862a15ebd3e336445a89c10deb723 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 22 Feb 2012 02:49:14 +0100 Subject: IPHONE: Very minor cleanup. --- backends/platform/iphone/iphone_video.mm | 6 ++---- 1 file 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); } -- cgit v1.2.3