1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 17:49:10 +00:00

Fix e1f5be62: Clear font cache when toggling sprite font.

This is necessary for the sprite font height and ascender to be updated correctly.
This commit is contained in:
2024-01-14 23:48:33 +00:00
parent 994bdff81e
commit 907cf561d5

View File

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