Only scale display when window big enough (#622)
This commit is contained in:
parent
c9e274dc6e
commit
5199c3dc87
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue