Add: Define scaled WidgetDimensions.

Includes RectPadding container.
This commit is contained in:
Peter Nelson
2022-09-28 18:02:14 +01:00
committed by PeterN
parent b6ed595176
commit b5693becdc
4 changed files with 113 additions and 4 deletions

View File

@@ -3356,6 +3356,7 @@ void ReInitWindow(Window *w, bool zoom_changed)
/** Re-initialize all windows. */
void ReInitAllWindows(bool zoom_changed)
{
SetupWidgetDimensions();
NWidgetLeaf::InvalidateDimensionCache(); // Reset cached sizes of several widgets.
NWidgetScrollbar::InvalidateDimensionCache();