aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2012-02-23 21:55:36 +0100
committerJohannes Schickel2012-02-23 21:55:36 +0100
commit4f85ad6b999851adedaed80d4406c09fe2d977a4 (patch)
treec29f6ba978d43c5440c4668775550acd22fd3a6d
parent3f37842580ee0fe2456f301354d0366024cf3f2e (diff)
downloadscummvm-rg350-4f85ad6b999851adedaed80d4406c09fe2d977a4.tar.gz
scummvm-rg350-4f85ad6b999851adedaed80d4406c09fe2d977a4.tar.bz2
scummvm-rg350-4f85ad6b999851adedaed80d4406c09fe2d977a4.zip
IPHONE: Fix mouse coordinates for hi res games.
-rw-r--r--backends/platform/iphone/iphone_video.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/iphone/iphone_video.mm b/backends/platform/iphone/iphone_video.mm
index 7ae5dd6a7d..cdd8d68b31 100644
--- a/backends/platform/iphone/iphone_video.mm
+++ b/backends/platform/iphone/iphone_video.mm
@@ -648,7 +648,7 @@ const char *iPhone_getDocumentsDir() {
*y = (int)(point.y * height + offsetY);
// Clip coordinates
- if (*x < 0 || *x > CGRectGetWidth(*area) || *y < 0 || *y > CGRectGetHeight(*area))
+ if (*x < 0 || *x > width || *y < 0 || *y > height)
return false;
return true;