Update text-size related caches after changing font details
This commit is contained in:
12
src/gfx.cpp
12
src/gfx.cpp
@@ -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) {
|
||||
|
Reference in New Issue
Block a user