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