Removed not needed SDL_WINDOW_SHOWN from test programs.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 20 Jul 2013 21:47:16 +0200
changeset 74780d02f6a323f5
parent 7477 a73210626b97
child 7479 ef5b0ca53305
Removed not needed SDL_WINDOW_SHOWN from test programs.
See bug #1667.
test/testgamecontroller.c
test/testjoystick.c
test/testmessage.c
test/testoverlay2.c
test/testshape.c
test/teststreaming.c
     1.1 --- a/test/testgamecontroller.c	Sat Jul 20 21:39:54 2013 +0200
     1.2 +++ b/test/testgamecontroller.c	Sat Jul 20 21:47:16 2013 +0200
     1.3 @@ -105,7 +105,7 @@
     1.4      /* Create a window to display controller axis position */
     1.5      window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED,
     1.6                                SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
     1.7 -                              SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
     1.8 +                              SCREEN_HEIGHT, 0);
     1.9      if (window == NULL) {
    1.10          fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
    1.11          return;
     2.1 --- a/test/testjoystick.c	Sat Jul 20 21:39:54 2013 +0200
     2.2 +++ b/test/testjoystick.c	Sat Jul 20 21:47:16 2013 +0200
     2.3 @@ -50,7 +50,7 @@
     2.4      /* Create a window to display joystick axis position */
     2.5      window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
     2.6                                SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
     2.7 -                              SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
     2.8 +                              SCREEN_HEIGHT, 0);
     2.9      if (window == NULL) {
    2.10          fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
    2.11          return SDL_FALSE;
     3.1 --- a/test/testmessage.c	Sat Jul 20 21:39:54 2013 +0200
     3.2 +++ b/test/testmessage.c	Sat Jul 20 21:47:16 2013 +0200
     3.3 @@ -159,7 +159,7 @@
     3.4      /* Test showing a message box with a parent window */
     3.5      {
     3.6          SDL_Event event;
     3.7 -        SDL_Window *window = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, SDL_WINDOW_SHOWN);
     3.8 +        SDL_Window *window = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, 0);
     3.9  
    3.10          success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
    3.11                      "Simple MessageBox",
     4.1 --- a/test/testoverlay2.c	Sat Jul 20 21:39:54 2013 +0200
     4.2 +++ b/test/testoverlay2.c	Sat Jul 20 21:47:16 2013 +0200
     4.3 @@ -496,7 +496,7 @@
     4.4                                SDL_WINDOWPOS_UNDEFINED,
     4.5                                SDL_WINDOWPOS_UNDEFINED,
     4.6                                window_w, window_h,
     4.7 -                              SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
     4.8 +                              SDL_WINDOW_RESIZABLE);
     4.9      if (!window) {
    4.10          fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
    4.11          free(RawMooseData);
     5.1 --- a/test/testshape.c	Sat Jul 20 21:39:54 2013 +0200
     5.2 +++ b/test/testshape.c	Sat Jul 20 21:47:16 2013 +0200
     5.3 @@ -106,7 +106,7 @@
     5.4          }
     5.5      }
     5.6  
     5.7 -    window = SDL_CreateShapedWindow("SDL_Shape test",SHAPED_WINDOW_X,SHAPED_WINDOW_Y,SHAPED_WINDOW_DIMENSION,SHAPED_WINDOW_DIMENSION,SDL_WINDOW_RESIZABLE | SDL_WINDOW_SHOWN);
     5.8 +    window = SDL_CreateShapedWindow("SDL_Shape test",SHAPED_WINDOW_X,SHAPED_WINDOW_Y,SHAPED_WINDOW_DIMENSION,SHAPED_WINDOW_DIMENSION,SDL_WINDOW_RESIZABLE);
     5.9      if(window == NULL) {
    5.10          for(i=0;i<num_pictures;i++)
    5.11              SDL_FreeSurface(pictures[i].surface);
     6.1 --- a/test/teststreaming.c	Sat Jul 20 21:39:54 2013 +0200
     6.2 +++ b/test/teststreaming.c	Sat Jul 20 21:47:16 2013 +0200
     6.3 @@ -113,7 +113,7 @@
     6.4                                SDL_WINDOWPOS_UNDEFINED,
     6.5                                SDL_WINDOWPOS_UNDEFINED,
     6.6                                MOOSEPIC_W*4, MOOSEPIC_H*4,
     6.7 -                              SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
     6.8 +                              SDL_WINDOW_RESIZABLE);
     6.9      if (!window) {
    6.10          fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
    6.11          quit(3);