zoom: ignore if 0, ie if the screen is somehow TOO small to do any scaling

This commit is contained in:
Sigrid Solveig Haflínudóttir 2023-05-02 22:53:07 +00:00
parent 83ba7e05ea
commit c7f3014fe9
1 changed files with 4 additions and 2 deletions

View File

@ -262,8 +262,10 @@ start(Uxn *u, char *rom, int queue)
static void
set_zoom(Uint8 z)
{
if (z >= 1) {
zoom = z;
set_window_size(gWindow, (uxn_screen.width + PAD * 2) * zoom, (uxn_screen.height + PAD * 2) * zoom);
}
}
static void