src/SDL_compat.c
changeset 5267 93ea62a5ba8f
parent 5262 b530ef003506
child 5286 73d27f06a715
equal deleted inserted replaced
5266:e107518710f6 5267:93ea62a5ba8f
   517     window_flags = SDL_GetWindowFlags(SDL_VideoWindow);
   517     window_flags = SDL_GetWindowFlags(SDL_VideoWindow);
   518     surface_flags = 0;
   518     surface_flags = 0;
   519     if (window_flags & SDL_WINDOW_FULLSCREEN) {
   519     if (window_flags & SDL_WINDOW_FULLSCREEN) {
   520         surface_flags |= SDL_FULLSCREEN;
   520         surface_flags |= SDL_FULLSCREEN;
   521     }
   521     }
   522     if (window_flags & SDL_WINDOW_OPENGL) {
   522     if ((window_flags & SDL_WINDOW_OPENGL) && (flags & SDL_OPENGL)) {
   523         surface_flags |= SDL_OPENGL;
   523         surface_flags |= SDL_OPENGL;
   524     }
   524     }
   525     if (window_flags & SDL_WINDOW_RESIZABLE) {
   525     if (window_flags & SDL_WINDOW_RESIZABLE) {
   526         surface_flags |= SDL_RESIZABLE;
   526         surface_flags |= SDL_RESIZABLE;
   527     }
   527     }