summaryrefslogtreecommitdiff
path: root/ui/window.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-13 14:25:24 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-14 23:46:14 +0000
commitee88fe8a5bbdd95c6fcaf4f972239aa418e05b0a (patch)
tree66f7885cb64ec4f36a13e1bf6fd95a3d59ff9f92 /ui/window.cpp
parentRemove useless GeoData default constructor (diff)
downloadilt-ee88fe8a5bbdd95c6fcaf4f972239aa418e05b0a.tar.bz2
ilt-ee88fe8a5bbdd95c6fcaf4f972239aa418e05b0a.tar.xz
ilt-ee88fe8a5bbdd95c6fcaf4f972239aa418e05b0a.zip
Pass flags to Window constructor
Diffstat (limited to 'ui/window.cpp')
-rw-r--r--ui/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/window.cpp b/ui/window.cpp
index 0d4c401..51aa827 100644
--- a/ui/window.cpp
+++ b/ui/window.cpp
@@ -19,11 +19,11 @@ Window::GlewInitHelper::GlewInitHelper()
}();
}
-Window::Window(size_t width, size_t height, const std::string & title) :
+Window::Window(size_t width, size_t height, const std::string & title, Uint32 flags) :
size {static_cast<int>(width), static_cast<int>(height)}, m_window {title.c_str(),
static_cast<int>(SDL_WINDOWPOS_CENTERED),
static_cast<int>(SDL_WINDOWPOS_CENTERED), size.x,
- size.y, static_cast<Uint32>(SDL_WINDOW_OPENGL)},
+ size.y, flags},
glContext {m_window}, uiShader {width, height}
{
}