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,9 +262,11 @@ 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
|
||||
capture_screen(void)
|
||||
|
|
Loading…
Reference in New Issue