From b894ba4c57831e11537bd31151f7afff2aaa09be Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 27 Jan 2023 09:36:04 -0800 Subject: [PATCH] Fixed issue with screen vector run --- src/uxnemu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uxnemu.c b/src/uxnemu.c index e390506..e18dcfe 100644 --- a/src/uxnemu.c +++ b/src/uxnemu.c @@ -433,11 +433,11 @@ static int run(Uxn *u) { Uint64 now = SDL_GetPerformanceCounter(), frame_end = now, frame_interval = SDL_GetPerformanceFrequency() / 60; - for(;!u->dev[0x0f]; now = SDL_GetPerformanceCounter()) { + for(; !u->dev[0x0f]; now = SDL_GetPerformanceCounter()) { exec_deadline = now + deadline_interval; if(!handle_events(u)) return 0; - if (((Sint64)(frame_end - SDL_GetPerformanceCounter())) >= 0) { + if(((Sint64)(frame_end - SDL_GetPerformanceCounter())) <= 0) { frame_end = now + frame_interval; uxn_eval(u, GETVEC(&u->dev[0x20])); }