test/testmessage.c
changeset 7478 0d02f6a323f5
parent 7458 648067e9073a
child 7517 965d57022c01
equal deleted inserted replaced
7477:a73210626b97 7478:0d02f6a323f5
   157     }
   157     }
   158 
   158 
   159     /* Test showing a message box with a parent window */
   159     /* Test showing a message box with a parent window */
   160     {
   160     {
   161         SDL_Event event;
   161         SDL_Event event;
   162         SDL_Window *window = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, SDL_WINDOW_SHOWN);
   162         SDL_Window *window = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, 0);
   163 
   163 
   164         success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
   164         success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
   165                     "Simple MessageBox",
   165                     "Simple MessageBox",
   166                     "This is a simple error MessageBox with a parent window",
   166                     "This is a simple error MessageBox with a parent window",
   167                     window);
   167                     window);