File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 8888 var screenHeight = toNumber ( parameters [ 'screenHeight' ] , 624 ) ;
8989 var renderingMode = parameters [ 'renderingMode' ] . toLowerCase ( ) ;
9090 var alwaysDash = parameters [ 'alwaysDash' ] . toLowerCase ( ) === 'on' ;
91- var windowWidth = toNumber ( parameters [ 'changeWindowWidthTo' ] , 0 ) ;
92- var windowHeight = toNumber ( parameters [ 'changeWindowHeightTo' ] , 0 ) ;
91+ var windowWidthTo = toNumber ( parameters [ 'changeWindowWidthTo' ] , 0 ) ;
92+ var windowHeightTo = toNumber ( parameters [ 'changeWindowHeightTo' ] , 0 ) ;
9393
94- if ( screenWidth !== SceneManager . _screenWidth || ( scaleFactor !== 1 && ! windowWidth ) ) {
94+ var windowWidth ;
95+ var windowHeight ;
96+
97+ if ( windowWidthTo ) {
98+ windowWidth = windowWidthTo ;
99+ } else if ( scaleFactor !== 1 ) {
95100 windowWidth = screenWidth * scaleFactor ;
101+ } else if ( screenWidth !== SceneManager . _screenWidth ) {
102+ windowWidth = screenWidth ;
96103 }
97104
98- if ( screenHeight !== SceneManager . _screenHeight || ( scaleFactor !== 1 && ! windowHeight ) ) {
105+ if ( windowHeightTo ) {
106+ windowHeight = windowHeightTo ;
107+ } else if ( scaleFactor !== 1 ) {
99108 windowHeight = screenHeight * scaleFactor ;
109+ } else if ( screenHeight !== SceneManager . _screenHeight ) {
110+ windowHeight = screenHeight ;
100111 }
101112
102113
You can’t perform that action at this time.
0 commit comments