diff options
Diffstat (limited to 'src/menu')
-rw-r--r-- | src/menu/application.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp index d0cb9926..1e82b6e2 100644 --- a/src/menu/application.cpp +++ b/src/menu/application.cpp @@ -145,12 +145,14 @@ namespace usdx char env[] = "SDL_VIDEO_CENTERED=center"; SDL_putenv(env); - // create screen - display = SDL_SetVideoMode(get_width(), - get_height(), - 24, - SDL_OPENGL); + // fullscreen if requested from config + Uint32 flags = SDL_OPENGL; + if (config->get_graphics_fullscreen()) { + flags |= SDL_FULLSCREEN; + } + // create screen + display = SDL_SetVideoMode(get_width(), get_height(), 24, flags); glViewport(0, 0, get_width(), get_height()); glClearColor(0.0f, 0.0f, 0.0f, 0.0f); |