From 821a53bd58cc2ccbf6c6a3fc2aa040e06d24fd0c Mon Sep 17 00:00:00 2001 From: itsmattkc <34096995+itsmattkc@users.noreply.github.com> Date: Sat, 13 Dec 2025 00:55:05 -0800 Subject: [PATCH] Update ui_sdl.c --- gui/ui/ui_sdl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gui/ui/ui_sdl.c b/gui/ui/ui_sdl.c index 689a9ce..4206ca5 100644 --- a/gui/ui/ui_sdl.c +++ b/gui/ui/ui_sdl.c @@ -325,8 +325,9 @@ int vui_sdl_event_thread(void *data) vui_sdl_context_t *sdl_ctx = (vui_sdl_context_t *) vui->platform_data; SDL_Event ev; - while (!vui->quit) { - while (SDL_WaitEventTimeout(&ev, 100)) { + // while (!vui->quit) { + // while (SDL_WaitEventTimeout(&ev, 100)) { + while (SDL_PollEvent(&ev)) { SDL_LockMutex(sdl_ctx->display_mutex); switch (ev.type) { @@ -523,7 +524,7 @@ int vui_sdl_event_thread(void *data) } SDL_UnlockMutex(sdl_ctx->display_mutex); } - } + // } return 0; }