Skip to content

Commit

Permalink
testmessage.c should report when message boxes were closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 1, 2015
1 parent 8bfc622 commit cb60f2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testmessage.c
Expand Up @@ -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;
Expand Down

0 comments on commit cb60f2d

Please sign in to comment.