From 4625d4ac34d34e3f08f16533da24a3f1e7cb5501 Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Sun, 28 Apr 2024 03:35:09 -0400 Subject: [PATCH] - mirror changes with ZWidget, remove SDL_Wait failure message --- libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp b/libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp index 9ccf859e0ad..17db8a863f2 100644 --- a/libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp +++ b/libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp @@ -288,9 +288,8 @@ void SDL2DisplayWindow::RunLoop() { SDL_Event event; int result = SDL_WaitEvent(&event); - if (result == 0) - fprintf(stderr, "SDL_WaitEvent failed: %s\n", SDL_GetError()); - DispatchEvent(event); + if (result == 1) + DispatchEvent(event); } }