uxn

Varvara Ordinator, written in ANSI C(SDL2)
git clone https://git.eamoncaddigan.net/uxn.git
Log | Files | Refs | README | LICENSE

commit c7f3014fe92aa59b063c068f629caaffb6ed537c
parent 83ba7e05eabc14a9aaf1084b2498e5ed622fa667
Author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
Date:   Tue,  2 May 2023 22:53:07 +0000

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

Diffstat:
Msrc/uxnemu.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

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