From 96bc4e0a3cec6c1ff8315c39d879e38cd6ee29db Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Thu, 3 Jun 2021 02:22:41 -0600 Subject: [PATCH] Restore the breathing room when adjusting game scale --- js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index a01adc0..4d28d28 100644 --- a/js/main.js +++ b/js/main.js @@ -2181,7 +2181,7 @@ class Player extends PrimaryView { // Divide to find the biggest scale that still fits. Leave a LITTLE wiggle room for pixel // rounding and breathing (except on small screens, where being too small REALLY hurts), but // not too much since there's already a flex gap between the game and header/footer - let maxfrac = is_portrait ? 1 : 0.99; + let maxfrac = is_portrait ? 1 : 0.95; let scale = Math.floor(maxfrac * dpr * Math.min(avail_x / base_x, avail_y / base_y)); if (scale <= 1) { scale = 1;