Fix e1f5be62: Clear font cache when toggling sprite font. (#11780)

This is necessary for the sprite font height and ascender to be updated correctly.
This commit is contained in:
2024-01-15 00:21:11 +00:00
committed by GitHub
parent 32fc740582
commit 53fa54f8e9

View File

@@ -573,6 +573,7 @@ struct GameOptionsWindow : Window {
InitFontCache(false);
InitFontCache(true);
ClearFontCache();
SetupWidgetDimensions();
ReInitAllWindows(true);
break;