From d74b4f20e722ecd732e70e76985c7c936d0f82a2 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Wed, 30 Jun 2010 23:14:04 +0200 Subject: Adhere to fullscreen flag. --- application.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3