Permalink
Browse files

[ios] - do the ipad3 retina fix only when we are queried for the main…

…Screen (internal touch display)
  • Loading branch information...
1 parent 8c1f246 commit f6ab0c6151a59a783c9ff4f538e91f5f5b94e58d @Memphiz committed May 29, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/osx/IOSEAGLView.mm
View
@@ -124,9 +124,9 @@ - (CGFloat) getScreenScale:(UIScreen *)screen
}
//if no retina display scale detected yet -
- //ensure retina resolution on ipad3
+ //ensure retina resolution on ipad3's mainScreen
//even on older iOS SDKs
- if (ret == 1.0 && DarwinIsIPad3())
+ if (ret == 1.0 && screen == [UIScreen mainScreen] && DarwinIsIPad3())
{
ret = 2.0;//iPad3 has scale factor 2 (like iPod 4g, iPhone4 and iPhone4s)
}

0 comments on commit f6ab0c6

Please sign in to comment.