Skip to content

Commit

Permalink
fixed cocos2d#404 enableRitinaDisplay return false on iphone3
Browse files Browse the repository at this point in the history
  • Loading branch information
yangws committed Mar 17, 2011
1 parent b44bc4c commit 9fe836b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cocos2dx/platform/ios/CCEGLView_ios.mm
Expand Up @@ -54,7 +54,8 @@ of this software and associated documentation files (the "Software"), to deal

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)
Expand Down

0 comments on commit 9fe836b

Please sign in to comment.