summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
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);