summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-06-30 23:14:04 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-06-30 23:14:04 +0200
commitd74b4f20e722ecd732e70e76985c7c936d0f82a2 (patch)
treea4941845f2939e6e3396ad4837937779557c0396
parentf8d8934e33ebdb165655297d7eb427fccc19cea8 (diff)
Adhere to fullscreen flag.
-rw-r--r--application.cpp4
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) {