IPHONE: Fix mouse coordinates for hi res games.

This commit is contained in:
Johannes Schickel 2012-02-23 21:55:36 +01:00
parent 3f37842580
commit 4f85ad6b99

View File

@ -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;