- mirror changes with ZWidget, remove SDL_Wait failure message

This commit is contained in:
Rachael Alexanderson 2024-04-28 03:35:09 -04:00
parent 92e509e771
commit 22fd9b66ad
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -288,9 +288,8 @@ void SDL2DisplayWindow::RunLoop()
{ {
SDL_Event event; SDL_Event event;
int result = SDL_WaitEvent(&event); int result = SDL_WaitEvent(&event);
if (result == 0) if (result == 1)
fprintf(stderr, "SDL_WaitEvent failed: %s\n", SDL_GetError()); DispatchEvent(event);
DispatchEvent(event);
} }
} }