fix upscaling of small resolutions
This commit is contained in:
parent
dd6dbb9d79
commit
c7a78029f9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue