more resolutions options

This commit is contained in:
David Chatel
2025-04-03 08:39:33 +02:00
parent a8dd2f0347
commit fcfa0e4b03
+2 -2
View File
@@ -47,8 +47,8 @@ app.registerExtension({
for (let i = 0; i < x.length; i++) {
for (let j = 0; j < y.length; j++) {
if (x[i] >= 360 && y[j] >= 360 && x[i] / y[j] === ratio && Math.round(lastX / x[i] * 100) / 100 === lastX / x[i]) {
options.push(`${x[i]}x${y[j]}: ${lastX / x[i]}`);
if (x[i] >= 360 && y[j] >= 360 && x[i] / y[j] === ratio) {
options.push(`${x[i]}x${y[j]}: ${Math.round(lastX / x[i] * 100) / 100}`);
}
}
}