mirror of https://github.com/OpenTTD/OpenTTD
Fix e2425b7: WidgetDimensions and depot sizes not set up if blitter forced.
Set up WidgetDimensions and depot sizes during InitWindowSystem().pull/11576/head
parent
2bada59193
commit
162ffc288d
|
@ -1807,9 +1807,12 @@ void InitWindowSystem()
|
||||||
_scrolling_viewport = false;
|
_scrolling_viewport = false;
|
||||||
_mouse_hovering = false;
|
_mouse_hovering = false;
|
||||||
|
|
||||||
|
SetupWidgetDimensions();
|
||||||
NWidgetLeaf::InvalidateDimensionCache(); // Reset cached sizes of several widgets.
|
NWidgetLeaf::InvalidateDimensionCache(); // Reset cached sizes of several widgets.
|
||||||
NWidgetScrollbar::InvalidateDimensionCache();
|
NWidgetScrollbar::InvalidateDimensionCache();
|
||||||
|
|
||||||
|
InitDepotWindowBlockSizes();
|
||||||
|
|
||||||
ShowFirstError();
|
ShowFirstError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue