1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Merge pull request #20359 from mrmbernardi/fix-windows

Fix #20312: Affected windows now update properly
This commit is contained in:
Matthias Moninger
2023-08-23 01:10:31 +03:00
committed by GitHub
4 changed files with 4 additions and 0 deletions

View File

@@ -665,6 +665,7 @@ private:
y = std::max<int32_t>(y, widget->bottom);
}
height = y + 6;
ResizeFrameWithPage();
}
void OnResize() override

View File

@@ -741,6 +741,7 @@ public:
}
}
ResizeFrameWithPage();
widgets[WIDX_SCENERY_LIST].right = windowWidth - 26;
widgets[WIDX_SCENERY_LIST].bottom = height - 14;

View File

@@ -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;

View File

@@ -379,6 +379,7 @@ public:
_colour_index_2 = -1;
}
ResizeFrameWithPage();
widgets[WIDX_THEMES_LIST].right = width - 4;
widgets[WIDX_THEMES_LIST].bottom = height - 0x0F;