mirror of https://github.com/axmolengine/axmol.git
revert modification of AppDelegate.cpp
This commit is contained in:
parent
eb952e7c69
commit
a568c1d221
|
@ -33,12 +33,10 @@ bool AppDelegate::applicationDidFinishLaunching() {
|
|||
// iphone
|
||||
|
||||
// try to enable retina on device
|
||||
// notice: passby CCDirecor::enableRetinaDisplay(), call CCEGLView::enableRetina() directly
|
||||
if (true == CCEGLView::sharedOpenGLView()->enableRetina())
|
||||
if (true == CCDirector::sharedDirector()->enableRetinaDisplay(true))
|
||||
{
|
||||
// iphone hd
|
||||
CCFileUtils::sharedFileUtils()->setResourceDirectory("iphonehd");
|
||||
CCEGLView::sharedOpenGLView()->setDesignResolutionSize(960, 640, kResolutionNoBorder);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue