Skip to content

Commit

Permalink
- mirror changes with ZWidget, remove SDL_Wait failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Apr 28, 2024
1 parent 620d689 commit 4625d4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 4625d4a

Please sign in to comment.