set design resolution for WatermelonWithme

This commit is contained in:
minggo 2013-04-27 14:54:53 +08:00
parent cbfa89868b
commit 651a42beaf
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,8 @@ bool AppDelegate::applicationDidFinishLaunching()
// set FPS. the default value is 1.0/60 if you don't call this
pDirector->setAnimationInterval(1.0 / 60);
CCEGLView::sharedOpenGLView()->setDesignResolutionSize(480, 320, kResolutionFixedHeight);
ScriptingCore* sc = ScriptingCore::getInstance();
sc->addRegisterCallback(register_all_cocos2dx);
sc->addRegisterCallback(register_all_cocos2dx_extension);