Skip to content

Commit 2e0bb0d

Browse files
author
liply
committed
remove scaleFactor
1 parent 14ea7de commit 2e0bb0d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

plugins/Community_Basic.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@
1818
* @desc The resolution of screen height
1919
* @default 624
2020
*
21-
* @param windowScaleFactor
22-
* @desc Scale window to (screen size * value).
23-
* @default 1
24-
*
2521
* @param changeWindowWidthTo
2622
* @desc If set, change window width to this value
2723
*
@@ -57,10 +53,6 @@
5753
* @desc 画面サイズの高さ
5854
* @default 624
5955
*
60-
* @param windowScaleFactor
61-
* @desc ウインドウを、画面サイズの指定された値分拡大・縮小します
62-
* @default 1
63-
*
6456
* @param changeWindowWidthTo
6557
* @desc 値が設定された場合、ウインドウの幅を指定した値に変更
6658
*
@@ -83,7 +75,6 @@
8375

8476
var parameters = PluginManager.parameters('Community_Basic');
8577
var cacheLimit = toNumber(parameters['cacheLimit'], 20);
86-
var scaleFactor = toNumber(parameters['windowScaleFactor'], 1);
8778
var screenWidth = toNumber(parameters['screenWidth'], 816);
8879
var screenHeight = toNumber(parameters['screenHeight'], 624);
8980
var renderingMode = parameters['renderingMode'].toLowerCase();
@@ -96,16 +87,12 @@
9687

9788
if(windowWidthTo){
9889
windowWidth = windowWidthTo;
99-
}else if(scaleFactor !== 1){
100-
windowWidth = screenWidth * scaleFactor;
10190
}else if(screenWidth !== SceneManager._screenWidth){
10291
windowWidth = screenWidth;
10392
}
10493

10594
if(windowHeightTo){
10695
windowHeight = windowHeightTo;
107-
}else if(scaleFactor !== 1){
108-
windowHeight = screenHeight * scaleFactor;
10996
}else if(screenHeight !== SceneManager._screenHeight){
11097
windowHeight = screenHeight;
11198
}

0 commit comments

Comments
 (0)