test/testmessage.c
changeset 6758 2a218048b45f
parent 6722 37283d4416e0
child 7088 664d8532219b
     1.1 --- a/test/testmessage.c	Sat Dec 15 21:50:17 2012 -0800
     1.2 +++ b/test/testmessage.c	Sun Dec 16 14:39:49 2012 -0500
     1.3 @@ -49,6 +49,15 @@
     1.4          quit(1);
     1.5      }
     1.6  
     1.7 +    success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
     1.8 +                "Simple MessageBox",
     1.9 +                "This is a simple MessageBox with a newline:\r\nHello world!",
    1.10 +                NULL);
    1.11 +    if (success == -1) {
    1.12 +        printf("Error Presenting MessageBox: %s\n", SDL_GetError());
    1.13 +        quit(1);
    1.14 +    }
    1.15 +
    1.16      /* Google says this is Traditional Chinese for "beef with broccoli" */
    1.17      success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
    1.18                  "UTF-8 Simple MessageBox",
    1.19 @@ -59,6 +68,16 @@
    1.20          quit(1);
    1.21      }
    1.22  
    1.23 +    /* Google says this is Traditional Chinese for "beef with broccoli" */
    1.24 +    success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
    1.25 +                "UTF-8 Simple MessageBox",
    1.26 +                "Unicode text and newline:\r\n'牛肉西蘭花'\n'牛肉西蘭花'",
    1.27 +                NULL);
    1.28 +    if (success == -1) {
    1.29 +        printf("Error Presenting MessageBox: %s\n", SDL_GetError());
    1.30 +        quit(1);
    1.31 +    }
    1.32 +
    1.33      {
    1.34          const SDL_MessageBoxButtonData buttons[] = {
    1.35              {