uxn

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

commit 3b10969f9ebd72a5d40e9c5c6405ae394a91fdf9
parent 8b43d0d7ae54169d9ac38d4e76043f7852c63e7d
Author: Devine Lu Linvega <aliceffekt@gmail.com>
Date:   Sun,  2 Apr 2023 20:27:15 -0700

Fixed issue where a screen redraw might occur after it has been unset

Diffstat:
Msrc/uxnemu.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/uxnemu.c b/src/uxnemu.c @@ -448,7 +448,7 @@ run(Uxn *u) { Uint64 now = SDL_GetPerformanceCounter(), frame_end, frame_interval = SDL_GetPerformanceFrequency() / 60; for(;;) { - Uint16 screen_vector = PEEK2(&u->dev[0x20]); + Uint16 screen_vector; /* .System/halt */ if(u->dev[0x0f]) return error("Run", "Ended."); @@ -456,6 +456,7 @@ run(Uxn *u) exec_deadline = now + deadline_interval; if(!handle_events(u)) return 0; + screen_vector = PEEK2(&u->dev[0x20]); uxn_eval(u, screen_vector); if(uxn_screen.fg.changed || uxn_screen.bg.changed) redraw();