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
|
static void
|
||||||
set_zoom(Uint8 z)
|
set_zoom(Uint8 z)
|
||||||
{
|
{
|
||||||
|
if (z >= 1) {
|
||||||
zoom = z;
|
zoom = z;
|
||||||
set_window_size(gWindow, (uxn_screen.width + PAD * 2) * zoom, (uxn_screen.height + PAD * 2) * zoom);
|
set_window_size(gWindow, (uxn_screen.width + PAD * 2) * zoom, (uxn_screen.height + PAD * 2) * zoom);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
capture_screen(void)
|
capture_screen(void)
|
||||||
|
|
Loading…
Reference in New Issue