Only scale display when window big enough (#622)

This commit is contained in:
Andy(Pengan) Zhou 2022-02-14 02:00:25 +08:00 committed by Fabian
parent c9e274dc6e
commit 5199c3dc87

View file

@ -330,7 +330,9 @@ function ScreenAdapter(screen_container, bus)
graphical_mode_height = height;
// add some scaling to tiny resolutions
if(graphical_mode_width <= 640)
if(graphical_mode_width <= 640 &&
graphical_mode_width * 2 < window.innerWidth &&
graphical_mode_height * 2 < window.innerHeight)
{
base_scale = 2;
}