diff options
-rw-r--r-- | application.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/application.cpp b/application.cpp index 890ac0f..07f4411 100644 --- a/application.cpp +++ b/application.cpp @@ -42,6 +42,10 @@ void Application::init_window(unsigned int w, unsigned int h, bool fs) { SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); + if(fs) { + flags |= SDL_FULLSCREEN; + } + // Get our surface surface = SDL_SetVideoMode(w, h, 32, flags); if(!surface) { |