diff options
author | Johannes Schickel | 2012-02-23 01:03:09 +0100 |
---|---|---|
committer | Johannes Schickel | 2012-02-23 01:08:47 +0100 |
commit | 833ce4f3489f3f9523b0d726d7e3b385e018abba (patch) | |
tree | 23a09d77758a90be3b7d452e5420e2418169f5d8 /backends/platform/iphone | |
parent | f4579aab9b107a3485d24ad41cb2748b5babae43 (diff) | |
download | scummvm-rg350-833ce4f3489f3f9523b0d726d7e3b385e018abba.tar.gz scummvm-rg350-833ce4f3489f3f9523b0d726d7e3b385e018abba.tar.bz2 scummvm-rg350-833ce4f3489f3f9523b0d726d7e3b385e018abba.zip |
IPHONE: Fix scale offset addition in the mouse coordinate code.
Formerly the overlay and game screen offset was swapped.
Diffstat (limited to 'backends/platform/iphone')
-rw-r--r-- | backends/platform/iphone/iphone_video.mm | 4 |
1 files changed, 2 insertions, 2 deletions
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); |