diff options
author | Johannes Schickel | 2014-06-05 04:42:57 +0200 |
---|---|---|
committer | Johannes Schickel | 2014-06-05 04:42:57 +0200 |
commit | c6a2d86be7097e8c86291c4b2b2b27218b34be9a (patch) | |
tree | 328c2e2fba31a37b8bacc9b37b51fcbb96cf6b9d /backends/platform/iphone/iphone_video.h | |
parent | 01c18c8f4051b39937d1f036283800a0e3973151 (diff) | |
download | scummvm-rg350-c6a2d86be7097e8c86291c4b2b2b27218b34be9a.tar.gz scummvm-rg350-c6a2d86be7097e8c86291c4b2b2b27218b34be9a.tar.bz2 scummvm-rg350-c6a2d86be7097e8c86291c4b2b2b27218b34be9a.zip |
IPHONE: Scale input according to content scale factor.
This hopefully fixes input positions in retina devices. The idea is stolen
from QT: https://qt.gitorious.org/qt/qt/source/0726127285413829f58618b5b82fb3e2da0c3a74:src/plugins/platforms/uikit/quikitwindow.mm#L261-296
Complicated way to retrieve scale's return value properly is taken from:
https://stackoverflow.com/questions/3130464 We sadly can't use the cleaner
solution since we don't want to require a newer SDK...
Diffstat (limited to 'backends/platform/iphone/iphone_video.h')
-rw-r--r-- | backends/platform/iphone/iphone_video.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/platform/iphone/iphone_video.h b/backends/platform/iphone/iphone_video.h index 9b26ca9c5a..7dbf3c57ab 100644 --- a/backends/platform/iphone/iphone_video.h +++ b/backends/platform/iphone/iphone_video.h @@ -70,6 +70,7 @@ GLfloat _mouseScaleX, _mouseScaleY; int _scaledShakeOffsetY; + CGFloat _contentScaleFactor; UITouch *_firstTouch; UITouch *_secondTouch; |