From 4f85ad6b999851adedaed80d4406c09fe2d977a4 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 23 Feb 2012 21:55:36 +0100 Subject: IPHONE: Fix mouse coordinates for hi res games. --- backends/platform/iphone/iphone_video.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3