mirror of https://github.com/OpenTTD/OpenTTD.git
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:
parent
2bada59193
commit
162ffc288d
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue