aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/ios7
diff options
context:
space:
mode:
authorVincent Bénony2015-12-09 17:48:46 +0100
committerVincent Bénony2016-01-06 16:17:37 +0100
commit56ca0b9dc257b7da1dd8c2fdd93a95fc5b802076 (patch)
tree861312a32c7058dbeb45491a45ea5fe806043c25 /backends/platform/ios7
parentee73bb428f6f23b921e8c832778b0225618c35b8 (diff)
downloadscummvm-rg350-56ca0b9dc257b7da1dd8c2fdd93a95fc5b802076.tar.gz
scummvm-rg350-56ca0b9dc257b7da1dd8c2fdd93a95fc5b802076.tar.bz2
scummvm-rg350-56ca0b9dc257b7da1dd8c2fdd93a95fc5b802076.zip
IOS: Scales the GUI for the iPad Pro
Diffstat (limited to 'backends/platform/ios7')
-rw-r--r--backends/platform/ios7/ios7_video.mm10
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;