diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-08 02:14:41 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-04-08 02:14:41 +0100 |
commit | 0255a421906b9b3a77d9b51eb7d0126f16a9f0db (patch) | |
tree | 0bb5f7e2824603a4c8ad4f5f8c854d0394250674 /ui/window.h | |
parent | Update the SceneShader's view port on sceneRenderer resize (diff) | |
download | ilt-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.h | 2 |
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); |