Skip to content

Commit

Permalink
IOS: window creation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
mgerhardy committed Mar 21, 2016
1 parent e68ee83 commit f3af4a4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/modules/gfx/SDLFrontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,13 +602,17 @@ int SDLFrontend::init (int width, int height, bool fullscreen, EventHandler &eve

int flags = SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN;
#ifdef __IPHONEOS__
flags |= SDL_WINDOW_RESIZABLE;
//flags |= SDL_WINDOW_RESIZABLE;
#endif


#if defined __IPHONEOS__ || defined __ANDROID__
#if defined __ANDROID__
if (fullscreen)
flags |= SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS;
#elif defined __IPHONEOS__
if (fullscreen)
flags |= SDL_WINDOW_FULLSCREEN | SDL_WINDOW_BORDERLESS;
flags |= SDL_WINDOW_ALLOW_HIGHDPI;
#else
if (fullscreen)
flags |= SDL_WINDOW_FULLSCREEN_DESKTOP | SDL_WINDOW_BORDERLESS;
Expand Down Expand Up @@ -757,7 +761,7 @@ void SDLFrontend::setGLAttributes ()
sdlCheckError();
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
sdlCheckError();
SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 1);
SDL_GL_SetAttribute(SDL_GL_RETAINED_BACKING, 0);
sdlCheckError();
const int r = Config.getConfigVar("red")->getIntValue();
const int g = Config.getConfigVar("green")->getIntValue();
Expand Down

0 comments on commit f3af4a4

Please sign in to comment.