summaryrefslogtreecommitdiff
path: root/ui/window.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-04-08 02:32:39 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-04-08 02:32:39 +0100
commitc6fb8dd64e0c323e46c73162e21a3a34103bb407 (patch)
tree89b3d5963a83bcf8bc6e49029e1ac3bb7d46b191 /ui/window.h
parentCreate WindowContent with a size object (diff)
downloadilt-c6fb8dd64e0c323e46c73162e21a3a34103bb407.tar.bz2
ilt-c6fb8dd64e0c323e46c73162e21a3a34103bb407.tar.xz
ilt-c6fb8dd64e0c323e46c73162e21a3a34103bb407.zip
Create Windows with a size object
Not individual width/height parameters.
Diffstat (limited to 'ui/window.h')
-rw-r--r--ui/window.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/window.h b/ui/window.h
index 1c3d09c..99a977f 100644
--- a/ui/window.h
+++ b/ui/window.h
@@ -15,7 +15,7 @@ using SDL_GLContextPtr = wrapped_ptrt<GL_Context, SDL_GL_CreateContext, SDL_GL_D
class Window {
public:
- Window(size_t width, size_t height, const char * title, Uint32 flags);
+ Window(ScreenAbsCoord size, const char * title, Uint32 flags);
virtual ~Window() = default;
NO_COPY(Window);
@@ -39,7 +39,6 @@ public:
protected:
void clear(float r, float g, float b, float a) const;
- const ScreenAbsCoord size;
SDL_WindowPtr m_window;
SDL_GLContextPtr glContext;
WindowContent::Ptr content;