summaryrefslogtreecommitdiff
path: root/ui/window.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-04-08 02:14:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-04-08 02:14:41 +0100
commit0255a421906b9b3a77d9b51eb7d0126f16a9f0db (patch)
tree0bb5f7e2824603a4c8ad4f5f8c854d0394250674 /ui/window.h
parentUpdate the SceneShader's view port on sceneRenderer resize (diff)
downloadilt-0255a421906b9b3a77d9b51eb7d0126f16a9f0db.tar.bz2
ilt-0255a421906b9b3a77d9b51eb7d0126f16a9f0db.tar.xz
ilt-0255a421906b9b3a77d9b51eb7d0126f16a9f0db.zip
Create WindowContent with a size object
Not individual width/height parameters.
Diffstat (limited to 'ui/window.h')
-rw-r--r--ui/window.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/window.h b/ui/window.h
index 0316a1f..1c3d09c 100644
--- a/ui/window.h
+++ b/ui/window.h
@@ -27,7 +27,7 @@ public:
{
glm::ivec2 size {};
SDL_GetWindowSizeInPixels(m_window, &size.x, &size.y);
- content = std::make_unique<C>(size.x, size.y, std::forward<P>(p)...);
+ content = std::make_unique<C>(ScreenAbsCoord {size.x, size.y}, std::forward<P>(p)...);
}
void tick(TickDuration elapsed);