1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-10 06:52:05 +01:00

Fix e2425b7: WidgetDimensions and depot sizes not set up if blitter forced.

Set up WidgetDimensions and depot sizes during InitWindowSystem().
This commit is contained in:
Peter Nelson
2023-12-11 12:26:22 +00:00
committed by Peter Nelson
parent 2bada59193
commit 162ffc288d

View File

@@ -1807,9 +1807,12 @@ void InitWindowSystem()
_scrolling_viewport = false;
_mouse_hovering = false;
SetupWidgetDimensions();
NWidgetLeaf::InvalidateDimensionCache(); // Reset cached sizes of several widgets.
NWidgetScrollbar::InvalidateDimensionCache();
InitDepotWindowBlockSizes();
ShowFirstError();
}