Skip to content

Commit a96af57

Browse files
Ff133+ newwin/LB steps
1 parent e660c09 commit a96af57

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

js/screen.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
function return_lb(w,h,isNew) {
66
// LB
7-
// TB13 aligns with newwin steps
87
let wstep = 200, hstep = 200, bw = false, bh = false
98
if (w < 501) {wstep = 50} else if (w < 1601) {wstep = isNew ? 200: 100}
109
if (h < 501) {hstep = 50} else if (h < 1601) {hstep = 100}
@@ -15,7 +14,6 @@ function return_lb(w,h,isNew) {
1514

1615
function return_nw(w,h, isNew) {
1716
// NW
18-
// TB13 changes to 1400 x 900 max
1917
let wstep = 200, hstep = 100, bw = false, bh = false
2018
if (w < (isNew ? 1401 : 1001)) {bw = Number.isInteger(w/wstep)}
2119
if (h < (isNew ? 901 : 1001)) {bh = Number.isInteger(h/hstep)}
@@ -302,8 +300,9 @@ const get_scr_measure = () => new Promise(resolve => {
302300
initData = isInitial; initHash = mini(isInitial)
303301
} else {
304302
// LB/NW
305-
addDisplay(1, 'window_letterbox','','', return_lb(oTmp.window.innerWidth, oTmp.window.innerHeight, isTB))
306-
addDisplay(1, 'window_newwin','','', return_nw(oTmp.window.innerWidth, oTmp.window.innerHeight, isTB))
303+
let isNew = isTB || isVer > 132 // 1556002 newWin & LB step alignment
304+
addDisplay(1, 'window_letterbox','','', return_lb(oTmp.window.innerWidth, oTmp.window.innerHeight, isNew))
305+
addDisplay(1, 'window_newwin','','', return_nw(oTmp.window.innerWidth, oTmp.window.innerHeight, isNew))
307306
}
308307
let isIframesSame = false
309308
for (const k of Object.keys(oCompare)) {

0 commit comments

Comments
 (0)