Do not call ReInitAllWindows from within LoadStringWidthTable
This commit is contained in:
@@ -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();
|
||||
|
||||
|
@@ -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 */
|
||||
|
@@ -1285,6 +1285,7 @@ static void ZoomMinMaxChanged(int32 new_value)
|
||||
UpdateRouteStepSpriteSize();
|
||||
UpdateFontHeightCache();
|
||||
LoadStringWidthTable();
|
||||
ReInitAllWindows(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -2577,6 +2577,7 @@ void CheckForMissingGlyphs(bool base_font, MissingGlyphSearcher *searcher)
|
||||
|
||||
/* Reset the font width */
|
||||
LoadStringWidthTable(searcher->Monospace());
|
||||
ReInitAllWindows(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user