From: Ingo Ruhnke Date: Fri, 1 Aug 2014 02:14:32 +0000 (+0200) Subject: Minor cleanup X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fda42849800f97ef07efa737e8c8cc8082c08cae;p=supertux.git Minor cleanup --- diff --git a/src/video/gl/gl_renderer.cpp b/src/video/gl/gl_renderer.cpp index c71de0adc..6982845db 100644 --- a/src/video/gl/gl_renderer.cpp +++ b/src/video/gl/gl_renderer.cpp @@ -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