Skip to content

Commit

Permalink
- demote SDL_Wait errors to console printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Apr 24, 2024
1 parent 586e899 commit 83d751a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp
Expand Up @@ -289,7 +289,11 @@ void SDL2DisplayWindow::RunLoop()
SDL_Event event;
int result = SDL_WaitEvent(&event);
if (result == 0)
throw std::runtime_error(std::string("SDL_WaitEvent failed:") + SDL_GetError());
{
fprintf(stderr, "SDL_WaitEvent failed: ");
fprintf(stderr, SDL_GetError());
fprintf(stderr, "\n");
}
DispatchEvent(event);
}
}
Expand Down

0 comments on commit 83d751a

Please sign in to comment.