From e00fc73eb891b7f460e2377fed7f12224a9103cf Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 23 Feb 2012 02:26:54 +0100 Subject: IPHONE: Silence a few signed/unsigned integer comparison warnings. --- backends/platform/iphone/osys_video.mm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'backends/platform/iphone/osys_video.mm') diff --git a/backends/platform/iphone/osys_video.mm b/backends/platform/iphone/osys_video.mm index bfa96c33e4..574fc07d0d 100644 --- a/backends/platform/iphone/osys_video.mm +++ b/backends/platform/iphone/osys_video.mm @@ -137,11 +137,11 @@ void OSystem_IPHONE::copyRectToScreen(const byte *buf, int pitch, int x, int y, y = 0; } - if (w > _videoContext.screenWidth - x) { + if (w > (int)_videoContext.screenWidth - x) { w = _videoContext.screenWidth - x; } - if (h > _videoContext.screenHeight - y) { + if (h > (int)_videoContext.screenHeight - y) { h = _videoContext.screenHeight - y; } @@ -154,7 +154,7 @@ void OSystem_IPHONE::copyRectToScreen(const byte *buf, int pitch, int x, int y, byte *dst = _gameScreenRaw + y * _videoContext.screenWidth + x; - if (_videoContext.screenWidth == pitch && pitch == w) + if ((int)_videoContext.screenWidth == pitch && pitch == w) memcpy(dst, buf, h * w); else { do { @@ -300,10 +300,10 @@ void OSystem_IPHONE::copyRectToOverlay(const OverlayColor *buf, int pitch, int x y = 0; } - if (w > _videoContext.overlayWidth - x) + if (w > (int)_videoContext.overlayWidth - x) w = _videoContext.overlayWidth - x; - if (h > _videoContext.overlayHeight - y) + if (h > (int)_videoContext.overlayHeight - y) h = _videoContext.overlayHeight - y; if (w <= 0 || h <= 0) @@ -314,7 +314,7 @@ void OSystem_IPHONE::copyRectToOverlay(const OverlayColor *buf, int pitch, int x } OverlayColor *dst = _overlayBuffer + (y * _videoContext.overlayWidth + x); - if (_videoContext.overlayWidth == pitch && pitch == w) + if ((int)_videoContext.overlayWidth == pitch && pitch == w) memcpy(dst, buf, h * w * sizeof(OverlayColor)); else { do { -- cgit v1.2.3