diff options
-rw-r--r-- | backends/platform/ios7/ios7_video.mm | 2 |
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 ) { |