aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2012-04-17 08:42:36 -0400
committerdavilla <davilla@4pi.com>2012-04-17 08:47:40 -0400
commitdae6aedce65d403b4db993445ef5de1542621dd0 (patch)
tree552cb83102338c5274ae78bcdeaeaa6877d1692a
parent307f57c73f6fbb7a37be588a7368934f59619dee (diff)
[ios] fix compile error on older 4.2 SDK
-rw-r--r--xbmc/osx/IOSScreenManager.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/xbmc/osx/IOSScreenManager.mm b/xbmc/osx/IOSScreenManager.mm
index be7a41e17d..3ea6194c65 100644
--- a/xbmc/osx/IOSScreenManager.mm
+++ b/xbmc/osx/IOSScreenManager.mm
@@ -196,8 +196,12 @@ IOSExternalTouchController *_externalTouchController;
#ifdef TARGET_DARWIN_IOS_ATV2
//because bounds returns f00bar on atv2 - we return the preferred resolution (which mostly is the
//right resolution
+#if __IPHONE_OS_VERSION_MIN_REQUIRED > __IPHONE_4_2
res.size = screen.preferredMode.size;
#else
+ res.size = [BRWindow interfaceFrame].size;
+#endif
+#else
//main screen is in portrait mode (physically) so exchange height and width
if(screen == [UIScreen mainScreen])
{