Changeset - r28458:8bd43cc2ea42
[Not reviewed]
master
0 1 0
Peter Nelson - 9 months ago 2024-01-15 00:21:11
peter1138@openttd.org
Fix e1f5be62: Clear font cache when toggling sprite font. (#11780)

This is necessary for the sprite font height and ascender to be updated correctly.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/settings_gui.cpp
Show inline comments
 
@@ -573,6 +573,7 @@ struct GameOptionsWindow : Window {
 

	
 
				InitFontCache(false);
 
				InitFontCache(true);
 
				ClearFontCache();
 
				SetupWidgetDimensions();
 
				ReInitAllWindows(true);
 
				break;
0 comments (0 inline, 0 general)