Minor cleanup
authorIngo Ruhnke <grumbel@gmail.com>
Fri, 1 Aug 2014 02:14:32 +0000 (04:14 +0200)
committerIngo Ruhnke <grumbel@gmail.com>
Fri, 1 Aug 2014 02:14:32 +0000 (04:14 +0200)
src/video/gl/gl_renderer.cpp

index c71de0a..6982845 100644 (file)
@@ -602,9 +602,6 @@ GLRenderer::apply_video_mode(const Size& size, bool fullscreen)
 
     if (fullscreen)
     {
-      int fullscreen_flags = SDL_WINDOW_FULLSCREEN; // SDL_WINDOW_FULLSCREEN_DESKTOP or 0
-      SDL_SetWindowDisplayMode(window, NULL);
-
       SDL_DisplayMode mode;
       mode.format = SDL_PIXELFORMAT_RGB888;
       mode.w = g_config->fullscreen_size.width;
@@ -620,7 +617,7 @@ GLRenderer::apply_video_mode(const Size& size, bool fullscreen)
       }
       else
       {
-        SDL_SetWindowFullscreen(window, fullscreen_flags);
+        SDL_SetWindowFullscreen(window, SDL_WINDOW_FULLSCREEN);
       }
     }
     else