test/testmessage.c
changeset 6758 2a218048b45f
parent 6722 37283d4416e0
child 7088 664d8532219b
equal deleted inserted replaced
6757:9935f71c8c81 6758:2a218048b45f
    47     if (success == -1) {
    47     if (success == -1) {
    48         printf("Error Presenting MessageBox: %s\n", SDL_GetError());
    48         printf("Error Presenting MessageBox: %s\n", SDL_GetError());
    49         quit(1);
    49         quit(1);
    50     }
    50     }
    51 
    51 
       
    52     success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
       
    53                 "Simple MessageBox",
       
    54                 "This is a simple MessageBox with a newline:\r\nHello world!",
       
    55                 NULL);
       
    56     if (success == -1) {
       
    57         printf("Error Presenting MessageBox: %s\n", SDL_GetError());
       
    58         quit(1);
       
    59     }
       
    60 
    52     /* Google says this is Traditional Chinese for "beef with broccoli" */
    61     /* Google says this is Traditional Chinese for "beef with broccoli" */
    53     success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
    62     success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
    54                 "UTF-8 Simple MessageBox",
    63                 "UTF-8 Simple MessageBox",
    55                 "Unicode text: '牛肉西蘭花' ...",
    64                 "Unicode text: '牛肉西蘭花' ...",
       
    65                 NULL);
       
    66     if (success == -1) {
       
    67         printf("Error Presenting MessageBox: %s\n", SDL_GetError());
       
    68         quit(1);
       
    69     }
       
    70 
       
    71     /* Google says this is Traditional Chinese for "beef with broccoli" */
       
    72     success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
       
    73                 "UTF-8 Simple MessageBox",
       
    74                 "Unicode text and newline:\r\n'牛肉西蘭花'\n'牛肉西蘭花'",
    56                 NULL);
    75                 NULL);
    57     if (success == -1) {
    76     if (success == -1) {
    58         printf("Error Presenting MessageBox: %s\n", SDL_GetError());
    77         printf("Error Presenting MessageBox: %s\n", SDL_GetError());
    59         quit(1);
    78         quit(1);
    60     }
    79     }