From 784467564c8e7069b28c10578e167793dd4a89a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Mon, 10 Jul 2023 15:37:42 +0000 Subject: [PATCH] uxnemu: fix two warnings on 9front build --- src/uxnemu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uxnemu.c b/src/uxnemu.c index 6438c28..6ba6737 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -470,7 +470,7 @@ static int run(Uxn *u) { Uint64 next_refresh = 0; - Uint64 now = SDL_GetPerformanceCounter(); + Uint64 now; Uint64 frame_interval = SDL_GetPerformanceFrequency() / 60; for(;;) { Uint16 screen_vector; @@ -489,9 +489,9 @@ run(Uxn *u) if(uxn_screen.x2) redraw(); } - if(BENCH) - ; - else if(screen_vector || uxn_screen.x2) { + if(BENCH) { + /* no delay */ + } else if(screen_vector || uxn_screen.x2) { Uint64 delay_ms = (next_refresh - now) / ms_interval; if(delay_ms > 0) SDL_Delay(delay_ms); } else