Changeset - r28280:8e201368f7d0
[Not reviewed]
master
0 1 0
Peter Nelson - 12 months ago 2023-12-11 12:26:22
peter1138@openttd.org
Fix e2425b7: WidgetDimensions and depot sizes not set up if blitter forced.

Set up WidgetDimensions and depot sizes during InitWindowSystem().
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/window.cpp
Show inline comments
 
@@ -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();
 
}
 

	
0 comments (0 inline, 0 general)