SDL: If our eventloop fails, log the reason!

Change-Id: I028eb118b7da2701b54fce639ee0dbbb1e5a85bc
This commit is contained in:
Solomon Peachy 2020-08-24 21:21:33 -04:00
parent 22eb2300b1
commit 6099767a18
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ void gui_message_loop(void)
do {
/* wait for the next event */
if(SDL_WaitEvent(&event) == 0) {
printf("SDL_WaitEvent() error\n");
printf("SDL_WaitEvent(): %s\n", SDL_GetError());
return; /* error, out of here */
}