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:

committed by
Peter Nelson

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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user