Permalink
Browse files

[ios] - fix retina support for iPad3 when not building with xcode4 an…

…d current ios sdk 5.1
  • Loading branch information...
Memphiz committed May 26, 2012
1 parent 3841cbe commit 13a8089308b3db495cbec77a09ce7bfc0c831ec8
Showing with 9 additions and 0 deletions.
  1. +9 −0 xbmc/osx/IOSEAGLView.mm
View
@@ -45,6 +45,7 @@
#import "XBMCController.h"
#import "IOSScreenManager.h"
#import "AutoPool.h"
#import "DarwinUtils.h"
//--------------------------------------------------------------
@interface IOSEAGLView (PrivateMethods)
@@ -121,6 +122,14 @@ - (CGFloat) getScreenScale:(UIScreen *)screen
{
ret = [screen scale];
}
//if no retina display scale detected yet -
//ensure retina resolution on ipad3
//even on older iOS SDKs
if (ret == 1.0 && DarwinIsIPad3())
{
ret = 2.0;//iPad3 has scale factor 2 (like iPod 4g, iPhone4 and iPhone4s)
}
}
return ret;
}

0 comments on commit 13a8089

Please sign in to comment.