diff --git a/src/gfx.cpp b/src/gfx.cpp index 8a864651b5..e43cf32352 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -1495,8 +1495,6 @@ void LoadStringWidthTable(bool monospace) _stringwidth_table[fs][i] = GetGlyphWidth(fs, i + 32); } } - - ReInitAllWindows(false); } /** @@ -2397,6 +2395,7 @@ bool AdjustGUIZoom(AdjustGUIZoomMode mode) ClearFontCache(); UpdateFontHeightCache(); LoadStringWidthTable(); + ReInitAllWindows(false); UpdateAllVirtCoords(); if (mode != AGZM_STARTUP) FixTitleGameZoom(); diff --git a/src/saveload/afterload.cpp b/src/saveload/afterload.cpp index a78e3c74d2..d77ba8a246 100644 --- a/src/saveload/afterload.cpp +++ b/src/saveload/afterload.cpp @@ -881,6 +881,7 @@ bool AfterLoadGame() /* Load the sprites */ GfxLoadSprites(); LoadStringWidthTable(); + ReInitAllWindows(false); /* Copy temporary data to Engine pool */ CopyTempEngineData(); @@ -4265,6 +4266,8 @@ void ReloadNewGRFData() UpdateExtraAspectsVariable(); + ReInitAllWindows(false); + /* Update company statistics. */ AfterLoadCompanyStats(); /* Check and update house and town values */ diff --git a/src/settings.cpp b/src/settings.cpp index 01e3f0b384..02b21b4c7c 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1285,6 +1285,7 @@ static void ZoomMinMaxChanged(int32 new_value) UpdateRouteStepSpriteSize(); UpdateFontHeightCache(); LoadStringWidthTable(); + ReInitAllWindows(false); } } diff --git a/src/strings.cpp b/src/strings.cpp index 10eae72a3d..575e0ade42 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -2577,6 +2577,7 @@ void CheckForMissingGlyphs(bool base_font, MissingGlyphSearcher *searcher) /* Reset the font width */ LoadStringWidthTable(searcher->Monospace()); + ReInitAllWindows(false); return; }