File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1818 * @desc The resolution of screen height
1919 * @default 624
2020 *
21- * @pram scaleFactor
21+ * @param scaleFactor
2222 * @desc Scale window to (screen size * value).
2323 * @default 1
2424 *
5757 * @desc 画面サイズの高さ
5858 * @default 624
5959 *
60- * @pram scaleFactor
60+ * @param scaleFactor
6161 * @desc ウインドウを、画面サイズの指定された値分拡大・縮小します
6262 * @default 1
6363 *
9191 var windowWidth = toNumber ( parameters [ 'changeWindowWidthTo' ] , 0 ) ;
9292 var windowHeight = toNumber ( parameters [ 'changeWindowHeightTo' ] , 0 ) ;
9393
94- if ( scaleFactor !== 1 && ! windowWidth ) {
94+ if ( screenWidth !== SceneManager . _screenWidth || ( scaleFactor !== 1 && ! windowWidth ) ) {
9595 windowWidth = screenWidth * scaleFactor ;
9696 }
9797
98- if ( scaleFactor !== 1 && ! windowHeight ) {
98+ if ( screenHeight !== SceneManager . _screenHeight || ( scaleFactor !== 1 && ! windowHeight ) ) {
9999 windowHeight = screenHeight * scaleFactor ;
100100 }
101101
102+
102103 ImageCache . limit = cacheLimit * 1000 * 1000 ;
103104 SceneManager . _screenWidth = screenWidth ;
104105 SceneManager . _screenHeight = screenHeight ;
You can’t perform that action at this time.
0 commit comments