diff options
author | Johannes Schickel | 2012-02-23 21:55:36 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-02-23 21:55:36 +0100 |
commit | 4f85ad6b999851adedaed80d4406c09fe2d977a4 (patch) | |
tree | c29f6ba978d43c5440c4668775550acd22fd3a6d | |
parent | 3f37842580ee0fe2456f301354d0366024cf3f2e (diff) | |
download | scummvm-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.mm | 2 |
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; |