mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00: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:
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
Block a user