Commit cb60f2dfc2114cdce2a2bb8754f58fef6887d2b1

Ryan C. Gordon 2015-05-31T22:27:46

testmessage.c should report when message boxes were closed.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testmessage.c b/test/testmessage.c
index 0b7ff7c..9cb8cb8 100644
--- a/test/testmessage.c
+++ b/test/testmessage.c
@@ -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;