From 22fd9b66ad9aed6aa9d036720bb482cbbbf9064f 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 9ccf859e0a..17db8a863f 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); } }