mirror of https://github.com/OpenTTD/OpenTTD
Fix e1f5be62: Clear font cache when toggling sprite font.
This is necessary for the sprite font height and ascender to be updated correctly.pull/11780/head
parent
994bdff81e
commit
907cf561d5
|
@ -573,6 +573,7 @@ struct GameOptionsWindow : Window {
|
|||
|
||||
InitFontCache(false);
|
||||
InitFontCache(true);
|
||||
ClearFontCache();
|
||||
SetupWidgetDimensions();
|
||||
ReInitAllWindows(true);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue