Changeset - r28317:2ce013b13bc5
[Not reviewed]
master
0 1 0
Peter Nelson - 6 months ago 2023-12-20 22:10:05
peter1138@openttd.org
Fix: Update widget dimensions before updating viewport signs. (#11611)

Viewport signs used fullbevel WidgetDimensions before it was updated for the new interface scale.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/gfx.cpp
Show inline comments
 
@@ -1990,12 +1990,13 @@ bool AdjustGUIZoom(bool automatic)
 
	if (old_font_zoom != _font_zoom) {
 
		GfxClearFontSpriteCache();
 
	}
 
	ClearFontCache();
 
	LoadStringWidthTable();
 

	
 
	SetupWidgetDimensions();
 
	UpdateAllVirtCoords();
 

	
 
	/* Adjust all window sizes to match the new zoom level, so that they don't appear
 
	   to move around when the application is moved to a screen with different DPI. */
 
	auto zoom_shift = old_gui_zoom - _gui_zoom;
 
	for (Window *w : Window::Iterate()) {
0 comments (0 inline, 0 general)