mirror of https://github.com/OpenTTD/OpenTTD.git
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:
parent
32fc740582
commit
53fa54f8e9
|
@ -573,6 +573,7 @@ struct GameOptionsWindow : Window {
|
|||
|
||||
InitFontCache(false);
|
||||
InitFontCache(true);
|
||||
ClearFontCache();
|
||||
SetupWidgetDimensions();
|
||||
ReInitAllWindows(true);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue