testmessage.c should report when message boxes were closed.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 31 May 2015 22:27:46 -0400
changeset 9694 b847b89f4a64
parent 9693 e8d9c63536f4
child 9695 363a7880b4f7
testmessage.c should report when message boxes were closed.
test/testmessage.c
--- a/test/testmessage.c	Sun May 31 21:50:50 2015 -0400
+++ b/test/testmessage.c	Sun May 31 22:27:46 2015 -0400
@@ -69,7 +69,7 @@
             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;