From 0255a421906b9b3a77d9b51eb7d0126f16a9f0db Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 8 Apr 2025 02:14:41 +0100 Subject: Create WindowContent with a size object Not individual width/height parameters. --- ui/window.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/window.h') 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(size.x, size.y, std::forward

(p)...); + content = std::make_unique(ScreenAbsCoord {size.x, size.y}, std::forward

(p)...); } void tick(TickDuration elapsed); -- cgit v1.2.3