aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone/osys_video.mm
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-23 02:26:54 +0100
committerJohannes Schickel2012-02-23 02:26:54 +0100
commite00fc73eb891b7f460e2377fed7f12224a9103cf (patch)
tree1bbe4d99557f0405cd59ad52a49ff95abe96bac0 /backends/platform/iphone/osys_video.mm
parent99ffbfedbcee50d46c49fdd2f78a409a51c91e3b (diff)
downloadscummvm-rg350-e00fc73eb891b7f460e2377fed7f12224a9103cf.tar.gz
scummvm-rg350-e00fc73eb891b7f460e2377fed7f12224a9103cf.tar.bz2
scummvm-rg350-e00fc73eb891b7f460e2377fed7f12224a9103cf.zip
IPHONE: Silence a few signed/unsigned integer comparison warnings.
Diffstat (limited to 'backends/platform/iphone/osys_video.mm')
-rw-r--r--backends/platform/iphone/osys_video.mm12
1 files changed, 6 insertions, 6 deletions
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 {