testmessage.c should report when message boxes were closed.

Ryan C. Gordon 2015-05-31 22:27:46 -04:00
parent 8bfc622b18
commit cb60f2dfc2
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ button_messagebox(void *eventNumber)
quit(2);
}
}
SDL_Log("Pressed button: %d, %s\n", button, button == 1 ? "Cancel" : "OK");
SDL_Log("Pressed button: %d, %s\n", button, button == -1 ? "[closed]" : button == 1 ? "Cancel" : "OK");
if (eventNumber) {
SDL_UserEvent event;