[Scummvm-cvs-logs] scummvm master -> 4f85ad6b999851adedaed80d4406c09fe2d977a4

lordhoto lordhoto at gmail.com
Thu Feb 23 22:00:38 CET 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
4f85ad6b99 IPHONE: Fix mouse coordinates for hi res games.


Commit: 4f85ad6b999851adedaed80d4406c09fe2d977a4
    https://github.com/scummvm/scummvm/commit/4f85ad6b999851adedaed80d4406c09fe2d977a4
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2012-02-23T12:55:36-08:00

Commit Message:
IPHONE: Fix mouse coordinates for hi res games.

Changed paths:
    backends/platform/iphone/iphone_video.mm



diff --git a/backends/platform/iphone/iphone_video.mm b/backends/platform/iphone/iphone_video.mm
index 7ae5dd6..cdd8d68 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;






More information about the Scummvm-git-logs mailing list