aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/facade/SDLContext.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 12:08:08 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-14 12:08:08 +0100
commit721262b488bcb67d5f19583c4a523d6ad1b54354 (patch)
treec7904833a8541fec32b53bd31c1475df2c03da49 /src/crepe/facade/SDLContext.cpp
parent1623663c6e2e8f33f84b37b9f6bd968c8bc6c92d (diff)
parent5ae2b3c2f7dc207980c6d475e54fa2c5242c560d (diff)
Merge branch 'loek/doxygen' into demo
Diffstat (limited to 'src/crepe/facade/SDLContext.cpp')
-rw-r--r--src/crepe/facade/SDLContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/facade/SDLContext.cpp b/src/crepe/facade/SDLContext.cpp
index 18f40f9..8353cef 100644
--- a/src/crepe/facade/SDLContext.cpp
+++ b/src/crepe/facade/SDLContext.cpp
@@ -35,10 +35,10 @@ SDLContext::SDLContext(Mediator & mediator) {
throw runtime_error(format("SDLContext: SDL_Init error: {}", SDL_GetError()));
}
- auto & cfg = Config::get_instance().window_settings;
+ auto & cfg = Config::get_instance().window;
SDL_Window * tmp_window
- = SDL_CreateWindow(cfg.window_title.c_str(), SDL_WINDOWPOS_CENTERED,
- SDL_WINDOWPOS_CENTERED, cfg.default_size.x, cfg.default_size.y, 0);
+ = SDL_CreateWindow(cfg.title.c_str(), SDL_WINDOWPOS_CENTERED,
+ SDL_WINDOWPOS_CENTERED, cfg.size.x, cfg.size.y, 0);
if (!tmp_window) {
throw runtime_error(format("SDLContext: SDL_Window error: {}", SDL_GetError()));
}