uxn

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

commit 784467564c8e7069b28c10578e167793dd4a89a8
parent 05356e23b17441d7f134b0ab5b4c8c89c483293f
Author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
Date:   Mon, 10 Jul 2023 15:37:42 +0000

uxnemu: fix two warnings on 9front build

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

diff --git 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