From 833ce4f3489f3f9523b0d726d7e3b385e018abba Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 23 Feb 2012 01:03:09 +0100 Subject: IPHONE: Fix scale offset addition in the mouse coordinate code. Formerly the overlay and game screen offset was swapped. --- backends/platform/iphone/iphone_video.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/platform/iphone/iphone_video.mm b/backends/platform/iphone/iphone_video.mm index 3eb2fef1fb..8734ffc165 100644 --- a/backends/platform/iphone/iphone_video.mm +++ b/backends/platform/iphone/iphone_video.mm @@ -219,12 +219,12 @@ static bool getMouseCoords(UIDeviceOrientation orientation, CGPoint point, int * area = &_overlayRect; width = _videoContext.overlayWidth; height = _videoContext.overlayHeight; - offsetY = _videoContext.shakeOffsetY; + offsetY = _scaledShakeOffsetY; } else { area = &_gameScreenRect; width = _videoContext.screenWidth; height = _videoContext.screenHeight; - offsetY = _scaledShakeOffsetY; + offsetY = _videoContext.shakeOffsetY; } point.x = (point.x - CGRectGetMinX(*area)) / CGRectGetWidth(*area); -- cgit v1.2.3