瀏覽代碼

testmessage.c should report when message boxes were closed.

Ryan C. Gordon 10 年之前
父節點
當前提交
cb60f2dfc2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;