Do not call ReInitAllWindows from within LoadStringWidthTable

This commit is contained in:
Jonathan G Rennison
2023-01-29 10:31:28 +00:00
parent 98d7ba8b9d
commit 7a7c688b11
4 changed files with 6 additions and 2 deletions

View File

@@ -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();