зеркало из https://github.com/microsoft/cocos2d-x.git
use ResolutionPolicy::SHOW_ALL on WP8
This commit is contained in:
Родитель
210f95c2d3
Коммит
8bd5497ac6
|
@ -29,7 +29,12 @@ bool AppDelegate::applicationDidFinishLaunching() {
|
|||
director->setOpenGLView(glview);
|
||||
|
||||
// Set the design resolution
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8)
|
||||
// a bug in DirectX 11 level9-x on the device prevents ResolutionPolicy::NO_BORDER from working correctly
|
||||
glview->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, ResolutionPolicy::SHOW_ALL);
|
||||
#else
|
||||
glview->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, ResolutionPolicy::NO_BORDER);
|
||||
#endif
|
||||
|
||||
Size frameSize = glview->getFrameSize();
|
||||
|
||||
|
|
|
@ -101,8 +101,8 @@ bool AppDelegate::applicationDidFinishLaunching()
|
|||
|
||||
fileUtils->setSearchPaths(searchPaths);
|
||||
|
||||
// glview->setDesignResolutionSize(screenSize.width, screenSize.height, ResolutionPolicy::NO_BORDER);
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_WP8) || (CC_TARGET_PLATFORM == CC_PLATFORM_WINRT)
|
||||
// a bug in DirectX 11 level9-x on the device prevents ResolutionPolicy::NO_BORDER from working correctly
|
||||
glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::SHOW_ALL);
|
||||
#else
|
||||
glview->setDesignResolutionSize(designSize.width, designSize.height, ResolutionPolicy::NO_BORDER);
|
||||
|
|
Загрузка…
Ссылка в новой задаче