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 7497109f37bca7cc
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
     1.1 --- a/Xcode-iOS/Demos/src/accelerometer.c	Sun Jul 21 12:54:27 2013 -0700
     1.2 +++ b/Xcode-iOS/Demos/src/accelerometer.c	Sun Jul 21 22:09:00 2013 +0200
     1.3 @@ -172,7 +172,7 @@
     1.4  
     1.5      /* create main window and renderer */
     1.6      window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
     1.7 -                                SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
     1.8 +                                SDL_WINDOW_OPENGL |
     1.9                                  SDL_WINDOW_BORDERLESS);
    1.10      renderer = SDL_CreateRenderer(window, 0, 0);
    1.11  
     2.1 --- a/Xcode-iOS/Demos/src/fireworks.c	Sun Jul 21 12:54:27 2013 -0700
     2.2 +++ b/Xcode-iOS/Demos/src/fireworks.c	Sun Jul 21 22:09:00 2013 +0200
     2.3 @@ -389,7 +389,7 @@
     2.4  
     2.5      /* create main window and renderer */
     2.6      window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
     2.7 -                                SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
     2.8 +                                SDL_WINDOW_OPENGL |
     2.9                                  SDL_WINDOW_BORDERLESS);
    2.10      context = SDL_GL_CreateContext(window);
    2.11  
     3.1 --- a/Xcode-iOS/Demos/src/happy.c	Sun Jul 21 12:54:27 2013 -0700
     3.2 +++ b/Xcode-iOS/Demos/src/happy.c	Sun Jul 21 22:09:00 2013 +0200
     3.3 @@ -136,7 +136,7 @@
     3.4          fatalError("Could not initialize SDL");
     3.5      }
     3.6      window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
     3.7 -                                SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
     3.8 +                                SDL_WINDOW_OPENGL |
     3.9                                  SDL_WINDOW_BORDERLESS);
    3.10  
    3.11      renderer = SDL_CreateRenderer(window, -1, 0);
     4.1 --- a/Xcode-iOS/Demos/src/rectangles.c	Sun Jul 21 12:54:27 2013 -0700
     4.2 +++ b/Xcode-iOS/Demos/src/rectangles.c	Sun Jul 21 22:09:00 2013 +0200
     4.3 @@ -68,7 +68,7 @@
     4.4      _sdl_window = SDL_CreateWindow("fred",
     4.5                                     0, 0,
     4.6                                     sx, sy,
     4.7 -                                   SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_BORDERLESS);
     4.8 +                                   SDL_WINDOW_OPENGL | SDL_WINDOW_BORDERLESS);
     4.9      
    4.10      SDL_SetHint("SDL_HINT_ORIENTATIONS", "LandscapeLeft LandscapeRight");
    4.11      
     5.1 --- a/Xcode-iOS/Demos/src/touch.c	Sun Jul 21 12:54:27 2013 -0700
     5.2 +++ b/Xcode-iOS/Demos/src/touch.c	Sun Jul 21 22:09:00 2013 +0200
     5.3 @@ -88,7 +88,7 @@
     5.4  
     5.5      /* create main window and renderer */
     5.6      window = SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
     5.7 -                                SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN |
     5.8 +                                SDL_WINDOW_OPENGL |
     5.9                                  SDL_WINDOW_BORDERLESS);
    5.10      renderer = SDL_CreateRenderer(window, 0, 0);
    5.11  
     6.1 --- a/Xcode-iOS/Template/SDL iOS Application/main.c	Sun Jul 21 12:54:27 2013 -0700
     6.2 +++ b/Xcode-iOS/Template/SDL iOS Application/main.c	Sun Jul 21 22:09:00 2013 +0200
     6.3 @@ -67,7 +67,7 @@
     6.4      /* create window and renderer */
     6.5      window =
     6.6          SDL_CreateWindow(NULL, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT,
     6.7 -                         SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
     6.8 +                         SDL_WINDOW_OPENGL);
     6.9      if (!window) {
    6.10          printf("Could not initialize Window\n");
    6.11          return 1;