From fa31cb9d0ca2991d04de74e825c5ec3aa6af6a74 Mon Sep 17 00:00:00 2001 From: Junyoung Yoon Date: Mon, 20 Feb 2017 11:57:45 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=ED=94=BC=EB=8B=88=EC=97=94=EC=A7=84=20?= =?UTF-8?q?=ED=99=94=EB=A9=B4=20=ED=95=B4=EC=83=81=EB=8F=84=EB=B9=84?= =?UTF-8?q?=EC=9C=A8=20=EA=B4=80=EB=A0=A8=20=EC=98=A4=EB=A5=98=20=EA=B4=80?= =?UTF-8?q?=EB=A0=A8=20=ED=95=B4=EA=B2=B0=ED=95=98=EC=98=80=EC=8A=B5?= =?UTF-8?q?=EB=8B=88=EB=8B=A4.=20=EC=A0=81=EC=9A=A9=EB=B6=80=ED=83=81?= =?UTF-8?q?=EB=93=9C=EB=A6=BD=EB=8B=88=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- novel/VisNovel/src/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novel/VisNovel/src/main.lua b/novel/VisNovel/src/main.lua index e820ebf5..2a777745 100644 --- a/novel/VisNovel/src/main.lua +++ b/novel/VisNovel/src/main.lua @@ -137,7 +137,7 @@ function ScreenReSize(width,height) if targetPlatform == kTargetWindows then glview:setFrameSize(width , height) end - glview:setDesignResolutionSize(width , height, cc.ResolutionPolicy.EXACT_FIT) + glview:setDesignResolutionSize(width , height, cc.ResolutionPolicy.SHOW_ALL end WIN_WIDTH = width @@ -716,4 +716,4 @@ end local status, msg = xpcall(main, __G__TRACKBACK__) if not status then error(msg) -end \ No newline at end of file +end From a3cfe8666296867eeccce408f2d0fcb2acd81a51 Mon Sep 17 00:00:00 2001 From: Junyoung Yoon Date: Wed, 22 Feb 2017 10:32:31 +0900 Subject: [PATCH 2/2] Update main.lua --- novel/VisNovel/src/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/novel/VisNovel/src/main.lua b/novel/VisNovel/src/main.lua index 2a777745..ad90fb4a 100644 --- a/novel/VisNovel/src/main.lua +++ b/novel/VisNovel/src/main.lua @@ -137,7 +137,7 @@ function ScreenReSize(width,height) if targetPlatform == kTargetWindows then glview:setFrameSize(width , height) end - glview:setDesignResolutionSize(width , height, cc.ResolutionPolicy.SHOW_ALL + glview:setDesignResolutionSize(width , height, cc.ResolutionPolicy.SHOW_ALL)--edited by Sina, This code works for Screen resising with blackbar end WIN_WIDTH = width