mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
testmessage: Try Unicode chars in the title, too.
This commit is contained in:
parent
05e78b3f49
commit
52df7f5b8f
@ -126,6 +126,16 @@ main(int argc, char *argv[])
|
|||||||
quit(1);
|
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);
|
button_messagebox(NULL);
|
||||||
|
|
||||||
/* Test showing a message box from a background thread.
|
/* Test showing a message box from a background thread.
|
||||||
|
Loading…
Reference in New Issue
Block a user