From c7a78029f9da9c078c52cec96cf8f7da28263b78 Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 6 Jan 2023 15:13:33 +0100 Subject: [PATCH] fix upscaling of small resolutions --- src/browser/screen.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/browser/screen.js b/src/browser/screen.js index 4667519d..9e06690b 100644 --- a/src/browser/screen.js +++ b/src/browser/screen.js @@ -349,7 +349,9 @@ function ScreenAdapter(screen_container, bus) graphic_screen.height = height; // add some scaling to tiny resolutions - if(width <= 640 && width * 2 < window.innerWidth && width * 2 < window.innerHeight) + if(width <= 640 && + width * 2 < window.innerWidth * window.devicePixelRatio && + height * 2 < window.innerHeight * window.devicePixelRatio) { base_scale = 2; }