SDL: If our eventloop fails, log the reason!
Change-Id: I028eb118b7da2701b54fce639ee0dbbb1e5a85bc
This commit is contained in:
parent
22eb2300b1
commit
6099767a18
1 changed files with 1 additions and 1 deletions
|
@ -295,7 +295,7 @@ void gui_message_loop(void)
|
||||||
do {
|
do {
|
||||||
/* wait for the next event */
|
/* wait for the next event */
|
||||||
if(SDL_WaitEvent(&event) == 0) {
|
if(SDL_WaitEvent(&event) == 0) {
|
||||||
printf("SDL_WaitEvent() error\n");
|
printf("SDL_WaitEvent(): %s\n", SDL_GetError());
|
||||||
return; /* error, out of here */
|
return; /* error, out of here */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue