Removed not needed SDL_WINDOW_SHOWN from iOS example programs.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Sun, 21 Jul 2013 22:09:00 +0200
changeset 7497 109f37bca7cc
parent 7496 13dfa871f0af
child 7498 bda3639deecc
Removed not needed SDL_WINDOW_SHOWN from iOS example programs. See bug #1667.
Xcode-iOS/Demos/src/accelerometer.c
Xcode-iOS/Demos/src/fireworks.c
Xcode-iOS/Demos/src/happy.c
Xcode-iOS/Demos/src/rectangles.c
Xcode-iOS/Demos/src/touch.c
Xcode-iOS/Template/SDL iOS Application/main.c
--- a/Xcode-iOS/Demos/src/accelerometer.c	Sun Jul 21 12:54:27 2013 -0700
+++ b/Xcode-iOS/Demos/src/accelerometer.c	Sun Jul 21 22:09:00 2013 +0200
@@ -172,7 +172,7 @@
 
     /* create main window and renderer */
     window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
-                                SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
+                                SDL_WINDOW_OPENGL |
                                 SDL_WINDOW_BORDERLESS);
     renderer = SDL_CreateRenderer(window, 0, 0);
 
--- a/Xcode-iOS/Demos/src/fireworks.c	Sun Jul 21 12:54:27 2013 -0700
+++ b/Xcode-iOS/Demos/src/fireworks.c	Sun Jul 21 22:09:00 2013 +0200
@@ -389,7 +389,7 @@
 
     /* create main window and renderer */
     window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
-                                SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
+                                SDL_WINDOW_OPENGL |
                                 SDL_WINDOW_BORDERLESS);
     context = SDL_GL_CreateContext(window);
 
--- a/Xcode-iOS/Demos/src/happy.c	Sun Jul 21 12:54:27 2013 -0700
+++ b/Xcode-iOS/Demos/src/happy.c	Sun Jul 21 22:09:00 2013 +0200
@@ -136,7 +136,7 @@
         fatalError("Could not initialize SDL");
     }
     window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
-                                SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
+                                SDL_WINDOW_OPENGL |
                                 SDL_WINDOW_BORDERLESS);
 
     renderer = SDL_CreateRenderer(window, -1, 0);
--- a/Xcode-iOS/Demos/src/rectangles.c	Sun Jul 21 12:54:27 2013 -0700
+++ b/Xcode-iOS/Demos/src/rectangles.c	Sun Jul 21 22:09:00 2013 +0200
@@ -68,7 +68,7 @@
     _sdl_window = SDL_CreateWindow("fred",
                                    0, 0,
                                    sx, sy,
-                                   SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_BORDERLESS);
+                                   SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS);
     
     SDL_SetHint("SDL_HINT_ORIENTATIONS", "LandscapeLeft LandscapeRight");
     
--- a/Xcode-iOS/Demos/src/touch.c	Sun Jul 21 12:54:27 2013 -0700
+++ b/Xcode-iOS/Demos/src/touch.c	Sun Jul 21 22:09:00 2013 +0200
@@ -88,7 +88,7 @@
 
     /* create main window and renderer */
     window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
-                                SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
+                                SDL_WINDOW_OPENGL |
                                 SDL_WINDOW_BORDERLESS);
     renderer = SDL_CreateRenderer(window, 0, 0);
 
--- a/Xcode-iOS/Template/SDL iOS Application/main.c	Sun Jul 21 12:54:27 2013 -0700
+++ b/Xcode-iOS/Template/SDL iOS Application/main.c	Sun Jul 21 22:09:00 2013 +0200
@@ -67,7 +67,7 @@
     /* create window and renderer */
     window =
         SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
-                         SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
+                         SDL_WINDOW_OPENGL);
     if (!window) {
         printf("Could not initialize Window\n");
         return 1;