Merge pull request #14809 from GuoLunHao/v3.10_js_window_size

change the resolution size of js template to (960 * 640) ,consistent with other templates
This commit is contained in:
xiaofeng11 2015-12-30 11:30:24 +08:00
commit efac4a17d4
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ bool AppDelegate::applicationDidFinishLaunching()
#if(CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT) #if(CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
glview = cocos2d::GLViewImpl::create("HelloJavascript"); glview = cocos2d::GLViewImpl::create("HelloJavascript");
#else #else
glview = cocos2d::GLViewImpl::createWithRect("HelloJavascript", Rect(0,0,900,640)); glview = cocos2d::GLViewImpl::createWithRect("HelloJavascript", Rect(0,0,960,640));
#endif #endif
director->setOpenGLView(glview); director->setOpenGLView(glview);
} }

View File

@ -61,7 +61,7 @@ cc.game.onStart = function(){
// Adjust viewport meta // Adjust viewport meta
cc.view.adjustViewPort(true); cc.view.adjustViewPort(true);
// Setup the resolution policy and design resolution size // Setup the resolution policy and design resolution size
cc.view.setDesignResolutionSize(800, 450, cc.ResolutionPolicy.SHOW_ALL); cc.view.setDesignResolutionSize(960, 640, cc.ResolutionPolicy.SHOW_ALL);
// Instead of set design resolution, you can also set the real pixel resolution size // Instead of set design resolution, you can also set the real pixel resolution size
// Uncomment the following line and delete the previous line. // Uncomment the following line and delete the previous line.
// cc.view.setRealPixelResolution(960, 640, cc.ResolutionPolicy.SHOW_ALL); // cc.view.setRealPixelResolution(960, 640, cc.ResolutionPolicy.SHOW_ALL);