diff options
author | Vincent Bénony | 2015-12-09 17:48:46 +0100 |
---|---|---|
committer | Vincent Bénony | 2016-01-06 16:17:37 +0100 |
commit | 56ca0b9dc257b7da1dd8c2fdd93a95fc5b802076 (patch) | |
tree | 861312a32c7058dbeb45491a45ea5fe806043c25 | |
parent | ee73bb428f6f23b921e8c832778b0225618c35b8 (diff) | |
download | scummvm-rg350-56ca0b9dc257b7da1dd8c2fdd93a95fc5b802076.tar.gz scummvm-rg350-56ca0b9dc257b7da1dd8c2fdd93a95fc5b802076.tar.bz2 scummvm-rg350-56ca0b9dc257b7da1dd8c2fdd93a95fc5b802076.zip |
IOS: Scales the GUI for the iPad Pro
-rw-r--r-- | backends/platform/ios7/ios7_video.mm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/backends/platform/ios7/ios7_video.mm b/backends/platform/ios7/ios7_video.mm index 191faa806b..235f8f28f1 100644 --- a/backends/platform/ios7/ios7_video.mm +++ b/backends/platform/ios7/ios7_video.mm @@ -132,7 +132,15 @@ uint getSizeNextPOT(uint size) { uint overlayWidth = MAX(_renderBufferWidth, _renderBufferHeight); uint overlayHeight = MIN(_renderBufferWidth, _renderBufferHeight); - if (!iOS7_isBigDevice()) { + if (iOS7_isBigDevice()) { + // On really big displays, like the iPad Pro, we scale the interface down + // so that the controls are not too small.. + while (overlayHeight > 1024) { + overlayWidth /= 2; + overlayHeight /= 2; + } + } + else { // On small devices, we force the user interface to use the small theme while (overlayHeight > 480) { overlayWidth /= 2; |