test/testmessage.c
changeset 11275 6dd70238edb7
parent 11272 d60ede5a0c2e
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11274:daea00fb0938 11275:6dd70238edb7
    44         SDL_MESSAGEBOX_INFORMATION,
    44         SDL_MESSAGEBOX_INFORMATION,
    45         NULL, /* no parent window */
    45         NULL, /* no parent window */
    46         "Custom MessageBox",
    46         "Custom MessageBox",
    47         "This is a custom messagebox",
    47         "This is a custom messagebox",
    48         2,
    48         2,
    49         buttons,
    49         NULL,/* buttons */
    50         NULL /* Default color scheme */
    50         NULL /* Default color scheme */
    51     };
    51     };
    52 
    52 
    53     int button = -1;
    53     int button = -1;
    54     int success = 0;
    54     int success = 0;
       
    55     data.buttons = buttons;
    55     if (eventNumber) {
    56     if (eventNumber) {
    56         data.message = "This is a custom messagebox from a background thread.";
    57         data.message = "This is a custom messagebox from a background thread.";
    57     }
    58     }
    58 
    59 
    59     success = SDL_ShowMessageBox(&data, &button);
    60     success = SDL_ShowMessageBox(&data, &button);