mirror of https://github.com/axmolengine/axmol.git
fixed #404 enableRitinaDisplay return false on iphone3
This commit is contained in:
parent
15e8ab9782
commit
fc2818cf21
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue