Update text-size related caches after changing font details

This commit is contained in:
Jonathan G Rennison
2024-01-15 17:51:33 +00:00
parent d7b75614bb
commit bb22440ab7
4 changed files with 18 additions and 2 deletions

View File

@@ -2222,6 +2222,18 @@ bool AdjustGUIZoom(AdjustGUIZoomMode mode)
return true;
}
void FontChanged()
{
extern void FlushDeparturesWindowTextCaches();
FlushDeparturesWindowTextCaches();
UpdateRouteStepSpriteSize();
SetupWidgetDimensions();
UpdateAllVirtCoords();
ReInitAllWindows(true);
}
void ChangeGameSpeed(bool enable_fast_forward)
{
if (enable_fast_forward) {