Removed not needed SDL_WINDOW_SHOWN from test programs.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sat, 20 Jul 2013 21:47:16 +0200
changeset 7478 0d02f6a323f5
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
--- a/test/testgamecontroller.c	Sat Jul 20 21:39:54 2013 +0200
+++ b/test/testgamecontroller.c	Sat Jul 20 21:47:16 2013 +0200
@@ -105,7 +105,7 @@
     /* Create a window to display controller axis position */
     window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED,
                               SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
-                              SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
+                              SCREEN_HEIGHT, 0);
     if (window == NULL) {
         fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
         return;
--- a/test/testjoystick.c	Sat Jul 20 21:39:54 2013 +0200
+++ b/test/testjoystick.c	Sat Jul 20 21:47:16 2013 +0200
@@ -50,7 +50,7 @@
     /* Create a window to display joystick axis position */
     window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
                               SDL_WINDOWPOS_CENTERED, SCREEN_WIDTH,
-                              SCREEN_HEIGHT, SDL_WINDOW_SHOWN);
+                              SCREEN_HEIGHT, 0);
     if (window == NULL) {
         fprintf(stderr, "Couldn't create window: %s\n", SDL_GetError());
         return SDL_FALSE;
--- a/test/testmessage.c	Sat Jul 20 21:39:54 2013 +0200
+++ b/test/testmessage.c	Sat Jul 20 21:47:16 2013 +0200
@@ -159,7 +159,7 @@
     /* Test showing a message box with a parent window */
     {
         SDL_Event event;
-        SDL_Window *window = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, SDL_WINDOW_SHOWN);
+        SDL_Window *window = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 640, 480, 0);
 
         success = SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
                     "Simple MessageBox",
--- a/test/testoverlay2.c	Sat Jul 20 21:39:54 2013 +0200
+++ b/test/testoverlay2.c	Sat Jul 20 21:47:16 2013 +0200
@@ -496,7 +496,7 @@
                               SDL_WINDOWPOS_UNDEFINED,
                               SDL_WINDOWPOS_UNDEFINED,
                               window_w, window_h,
-                              SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
+                              SDL_WINDOW_RESIZABLE);
     if (!window) {
         fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
         free(RawMooseData);
--- a/test/testshape.c	Sat Jul 20 21:39:54 2013 +0200
+++ b/test/testshape.c	Sat Jul 20 21:47:16 2013 +0200
@@ -106,7 +106,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);
+    window = SDL_CreateShapedWindow("SDL_Shape test",SHAPED_WINDOW_X,SHAPED_WINDOW_Y,SHAPED_WINDOW_DIMENSION,SHAPED_WINDOW_DIMENSION,SDL_WINDOW_RESIZABLE);
     if(window == NULL) {
         for(i=0;i<num_pictures;i++)
             SDL_FreeSurface(pictures[i].surface);
--- a/test/teststreaming.c	Sat Jul 20 21:39:54 2013 +0200
+++ b/test/teststreaming.c	Sat Jul 20 21:47:16 2013 +0200
@@ -113,7 +113,7 @@
                               SDL_WINDOWPOS_UNDEFINED,
                               SDL_WINDOWPOS_UNDEFINED,
                               MOOSEPIC_W*4, MOOSEPIC_H*4,
-                              SDL_WINDOW_SHOWN|SDL_WINDOW_RESIZABLE);
+                              SDL_WINDOW_RESIZABLE);
     if (!window) {
         fprintf(stderr, "Couldn't set create window: %s\n", SDL_GetError());
         quit(3);