Changeset - r28286:e864898ab7d3
[Not reviewed]
master
0 1 0
Peter Nelson - 6 months ago 2023-12-13 19:51:44
peter1138@openttd.org
Fix 0a8bcdd: Scaling non-sprite fonts does not depend on _font_zoom changing. (#11579)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/gfx.cpp
Show inline comments
 
@@ -1986,15 +1986,15 @@ bool AdjustGUIZoom(bool automatic)
 
	if (old_gui_zoom != _gui_zoom) {
 
		VideoDriver::GetInstance()->ClearSystemSprites();
 
		UpdateCursorSize();
 
	}
 
	if (old_font_zoom != _font_zoom) {
 
		GfxClearFontSpriteCache();
 
		ClearFontCache();
 
		LoadStringWidthTable();
 
	}
 
	ClearFontCache();
 
	LoadStringWidthTable();
 

	
 
	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;
0 comments (0 inline, 0 general)