Procházet zdrojové kódy

testmessage.c should report when message boxes were closed.

Ryan C. Gordon před 10 roky
rodič
revize
cb60f2dfc2
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      test/testmessage.c

+ 1 - 1
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;