diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-06-30 23:19:47 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-06-30 23:19:47 +0200 |
commit | 804a080a971d4705e38ec008705f8a414bf7c798 (patch) | |
tree | 5d8010a51099c331c4f248f65d079764a70fb299 | |
parent | 727cb49631d92a284fd7fe850022b9bd0e5f3bad (diff) |
Added Config::fullscreen.
-rw-r--r-- | engine/config.h | 2 | ||||
-rw-r--r-- | engine/engine.cpp | 2 | ||||
m--------- | wriggle | 0 |
3 files changed, 3 insertions, 1 deletions
diff --git a/engine/config.h b/engine/config.h index 1cf4713..07cd2b9 100644 --- a/engine/config.h +++ b/engine/config.h @@ -5,6 +5,8 @@ namespace Config { const unsigned int window_w = 1440; const unsigned int window_h = 1080; + const bool fullscreen = true; + const float viewport_x = 15.0 / 1080.0; const float viewport_y = 15.0 / 1080.0; const float viewport_w = 900.0 / 1080.0; diff --git a/engine/engine.cpp b/engine/engine.cpp index e67ead3..6d4a019 100644 --- a/engine/engine.cpp +++ b/engine/engine.cpp @@ -23,7 +23,7 @@ void Engine::event_keypress(SDLKey key) { } Engine::Engine() { - init_window(Config::window_w, Config::window_h); + init_window(Config::window_w, Config::window_h, Config::fullscreen); // Texturing glEnable(GL_TEXTURE_2D); diff --git a/wriggle b/wriggle -Subproject f8d8934e33ebdb165655297d7eb427fccc19cea +Subproject d74b4f20e722ecd732e70e76985c7c936d0f82a |