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:
Peter Nelson 2024-01-15 00:21:11 +00:00 committed by GitHub
parent 32fc740582
commit 53fa54f8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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