Skip to content

Commit fc36dc9

Browse files
author
liply
committed
typo and change if
1 parent 3fa0530 commit fc36dc9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

plugins/Community_Basic.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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
*
@@ -57,7 +57,7 @@
5757
* @desc 画面サイズの高さ
5858
* @default 624
5959
*
60-
* @pram scaleFactor
60+
* @param scaleFactor
6161
* @desc ウインドウを、画面サイズの指定された値分拡大・縮小します
6262
* @default 1
6363
*
@@ -91,14 +91,15 @@
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;

0 commit comments

Comments
 (0)