Skip to content

Commit 7540175

Browse files
- demote SDL_Wait errors to console printouts
1 parent 586e899 commit 7540175

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,11 @@ void SDL2DisplayWindow::RunLoop()
289289
SDL_Event event;
290290
int result = SDL_WaitEvent(&event);
291291
if (result == 0)
292-
throw std::runtime_error(std::string("SDL_WaitEvent failed:") + SDL_GetError());
292+
{
293+
printf("SDL_WaitEvent failed: ");
294+
printf(SDL_GetError());
295+
printf("\n");
296+
}
293297
DispatchEvent(event);
294298
}
295299
}

0 commit comments

Comments
 (0)