Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Grumbel committed Aug 1, 2014
1 parent a89f53b commit fda4284
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/video/gl/gl_renderer.cpp
Expand Up @@ -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;
Expand All @@ -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
Expand Down

0 comments on commit fda4284

Please sign in to comment.