Add: Define scaled WidgetDimensions.
Includes RectPadding container.
(cherry picked from commit b5693becdc
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
fb3b2c63bc
commit
1260e51d84
@@ -3545,6 +3545,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();
|
||||
|
||||
|
Reference in New Issue
Block a user