aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Crozat2018-10-28 17:40:56 +0000
committerThierry Crozat2018-10-28 17:40:56 +0000
commitb41a3a518a0d2871eab8aa5e3b5d4f9b440d5036 (patch)
treebbbc09a39a860acf3b51eb436c1191dfb15d8a5c
parent1f8b4a430f0016c71459f18a77560f9e3e3f2bae (diff)
downloadscummvm-rg350-b41a3a518a0d2871eab8aa5e3b5d4f9b440d5036.tar.gz
scummvm-rg350-b41a3a518a0d2871eab8aa5e3b5d4f9b440d5036.tar.bz2
scummvm-rg350-b41a3a518a0d2871eab8aa5e3b5d4f9b440d5036.zip
IOS: Attempt to fix compilation with pre-iOS 11 SDK
-rw-r--r--backends/platform/ios7/ios7_video.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/ios7/ios7_video.mm b/backends/platform/ios7/ios7_video.mm
index 160a905997..955f54a082 100644
--- a/backends/platform/ios7/ios7_video.mm
+++ b/backends/platform/ios7/ios7_video.mm
@@ -807,7 +807,7 @@ uint getSizeNextPOT(uint size) {
if ( [[[UIApplication sharedApplication] keyWindow] respondsToSelector:@selector(safeAreaInsets)] ) {
#endif
CGRect screenSize = [[UIScreen mainScreen] bounds];
- UIEdgeInsets inset = [[UIApplication sharedApplication] keyWindow].safeAreaInsets;
+ UIEdgeInsets inset = [[[UIApplication sharedApplication] keyWindow] safeAreaInsets];
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
CGRect newFrame = screenSize;
if ( orientation == UIInterfaceOrientationPortrait ) {