From 651a42beaf1d2128d19e7b8e494fa91f2600552b Mon Sep 17 00:00:00 2001 From: minggo Date: Sat, 27 Apr 2013 14:54:53 +0800 Subject: [PATCH] set design resolution for WatermelonWithme --- samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp b/samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp index 236d28967d..7261888e58 100644 --- a/samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp +++ b/samples/Javascript/WatermelonWithMe/Classes/AppDelegate.cpp @@ -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);