소스 검색

testmessage: Try Unicode chars in the title, too.

Ryan C. Gordon 10 년 전
부모
커밋
52df7f5b8f
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      test/testmessage.c

+ 10 - 0
test/testmessage.c

@@ -126,6 +126,16 @@ main(int argc, char *argv[])
         quit(1);
     }
 
+    /* Google says this is Traditional Chinese for "beef with broccoli" */
+    success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
+                "牛肉西蘭花",
+                "Unicode text in the title.",
+                NULL);
+    if (success == -1) {
+        SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Error Presenting MessageBox: %s\n", SDL_GetError());
+        quit(1);
+    }
+
     button_messagebox(NULL);
 
     /* Test showing a message box from a background thread.