From fc2818cf21d8916cf14c0f1eac566e947b216e39 Mon Sep 17 00:00:00 2001 From: yangws Date: Thu, 17 Mar 2011 11:10:50 +0800 Subject: [PATCH] fixed #404 enableRitinaDisplay return false on iphone3 --- cocos2dx/platform/ios/CCEGLView_ios.mm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocos2dx/platform/ios/CCEGLView_ios.mm b/cocos2dx/platform/ios/CCEGLView_ios.mm index 3ddb9ce253..587b5e5149 100644 --- a/cocos2dx/platform/ios/CCEGLView_ios.mm +++ b/cocos2dx/platform/ios/CCEGLView_ios.mm @@ -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)