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:
@@ -573,6 +573,7 @@ struct GameOptionsWindow : Window {
|
|||||||
|
|
||||||
InitFontCache(false);
|
InitFontCache(false);
|
||||||
InitFontCache(true);
|
InitFontCache(true);
|
||||||
|
ClearFontCache();
|
||||||
SetupWidgetDimensions();
|
SetupWidgetDimensions();
|
||||||
ReInitAllWindows(true);
|
ReInitAllWindows(true);
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user