fixed #404 enableRitinaDisplay return false on iphone3

This commit is contained in:
yangws 2011-03-17 11:10:50 +08:00
parent 15e8ab9782
commit fc2818cf21
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ bool CCEGLView::isOpenGLReady()
bool CCEGLView::canSetContentScaleFactor()
{
return [[EAGLView sharedEGLView] respondsToSelector:@selector(setContentScaleFactor:)];
return [[EAGLView sharedEGLView] respondsToSelector:@selector(setContentScaleFactor:)]
&& [[UIScreen mainScreen] scale] != 1.0;
}
void CCEGLView::setContentScaleFactor(float contentScaleFactor)