Skip to content

Commit ae05d26

Browse files
- demote SDL_Wait errors to console printouts
1 parent 9aa805e commit ae05d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ 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+
fprintf(stderr, "SDL_WaitEvent failed: %s\n", SDL_GetError());
293293
DispatchEvent(event);
294294
}
295295
}

0 commit comments

Comments
 (0)