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