summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-06-30 23:19:47 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-06-30 23:19:47 +0200
commit804a080a971d4705e38ec008705f8a414bf7c798 (patch)
tree5d8010a51099c331c4f248f65d079764a70fb299 /engine
parent727cb49631d92a284fd7fe850022b9bd0e5f3bad (diff)
Added Config::fullscreen.
Diffstat (limited to 'engine')
-rw-r--r--engine/config.h2
-rw-r--r--engine/engine.cpp2
2 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);