From 76af75af43f1851715735caa370f127687e115ae Mon Sep 17 00:00:00 2001 From: Michael Bernardi Date: Tue, 6 Jun 2023 21:37:03 +0200 Subject: [PATCH] Fix #20312: Affected windows now update properly --- src/openrct2-ui/windows/Options.cpp | 1 + src/openrct2-ui/windows/Scenery.cpp | 1 + src/openrct2-ui/windows/StaffList.cpp | 1 + src/openrct2-ui/windows/Themes.cpp | 1 + 4 files changed, 4 insertions(+) diff --git a/src/openrct2-ui/windows/Options.cpp b/src/openrct2-ui/windows/Options.cpp index f419c07d69..e8c2ebee2f 100644 --- a/src/openrct2-ui/windows/Options.cpp +++ b/src/openrct2-ui/windows/Options.cpp @@ -665,6 +665,7 @@ private: y = std::max(y, widget->bottom); } height = y + 6; + ResizeFrameWithPage(); } void OnResize() override diff --git a/src/openrct2-ui/windows/Scenery.cpp b/src/openrct2-ui/windows/Scenery.cpp index 00fd810b0d..9f9ce46033 100644 --- a/src/openrct2-ui/windows/Scenery.cpp +++ b/src/openrct2-ui/windows/Scenery.cpp @@ -741,6 +741,7 @@ public: } } + ResizeFrameWithPage(); widgets[WIDX_SCENERY_LIST].right = windowWidth - 26; widgets[WIDX_SCENERY_LIST].bottom = height - 14; diff --git a/src/openrct2-ui/windows/StaffList.cpp b/src/openrct2-ui/windows/StaffList.cpp index 5ac9a1bfab..4820cf4d69 100644 --- a/src/openrct2-ui/windows/StaffList.cpp +++ b/src/openrct2-ui/windows/StaffList.cpp @@ -268,6 +268,7 @@ public: } SetWidgetPressed(WIDX_STAFF_LIST_QUICK_FIRE, _quickFireMode); + ResizeFrameWithPage(); widgets[WIDX_STAFF_LIST_LIST].right = width - 4; widgets[WIDX_STAFF_LIST_LIST].bottom = height - 15; widgets[WIDX_STAFF_LIST_QUICK_FIRE].left = width - 77; diff --git a/src/openrct2-ui/windows/Themes.cpp b/src/openrct2-ui/windows/Themes.cpp index abc2ebf87c..5e59a115b4 100644 --- a/src/openrct2-ui/windows/Themes.cpp +++ b/src/openrct2-ui/windows/Themes.cpp @@ -379,6 +379,7 @@ public: _colour_index_2 = -1; } + ResizeFrameWithPage(); widgets[WIDX_THEMES_LIST].right = width - 4; widgets[WIDX_THEMES_LIST].bottom = height - 0x0F;