summaryrefslogtreecommitdiff
path: root/ui/gameMainWindow.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-18 21:41:15 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-18 21:41:15 +0000
commit0cea9c894eb514c70ff7c8edd0ccfa59c1f07a1a (patch)
tree57f1f7b55b76402196e46638d8a223397170c713 /ui/gameMainWindow.cpp
parentRename rdiv to ratio and add a vec2 override (diff)
downloadilt-0cea9c894eb514c70ff7c8edd0ccfa59c1f07a1a.tar.bz2
ilt-0cea9c894eb514c70ff7c8edd0ccfa59c1f07a1a.tar.xz
ilt-0cea9c894eb514c70ff7c8edd0ccfa59c1f07a1a.zip
Save size of output in SceneRender and set viewport accordingly
Diffstat (limited to 'ui/gameMainWindow.cpp')
-rw-r--r--ui/gameMainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp
index e49f4a9..c31265a 100644
--- a/ui/gameMainWindow.cpp
+++ b/ui/gameMainWindow.cpp
@@ -29,7 +29,7 @@ public:
};
GameMainWindow::GameMainWindow(size_t w, size_t h) :
- Window {w, h, "I Like Trains", SDL_WINDOW_OPENGL}, SceneRenderer {size, 0}
+ Window {w, h, "I Like Trains", SDL_WINDOW_OPENGL}, SceneRenderer {Window::size, 0}
{
uiComponents.create<ManualCameraController>(glm::vec2 {-1150, -1150});
auto gms = uiComponents.create<GameMainSelector>(&camera, glm::vec2 {w, h});