zoom: ignore if 0, ie if the screen is somehow TOO small to do any scaling
This commit is contained in:
parent
83ba7e05ea
commit
c7f3014fe9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue