1
0
Fork 0

Fix: Don't implicitly ReInit all windows after updating the character width cache.

This caused duplicate ReInit when changing interface scale.
pull/11562/head
Peter Nelson 2023-11-29 12:35:00 +00:00 committed by Peter Nelson
parent 54ba757910
commit e2425b72c1
2 changed files with 1 additions and 2 deletions

View File

@ -1406,8 +1406,6 @@ void LoadStringWidthTable(bool monospace)
_stringwidth_table[fs][i] = GetGlyphWidth(fs, i + 32); _stringwidth_table[fs][i] = GetGlyphWidth(fs, i + 32);
} }
} }
ReInitAllWindows(false);
} }
/** /**

View File

@ -270,6 +270,7 @@ static void ZoomMinMaxChanged(int32_t)
_gui_zoom = _settings_client.gui.zoom_min; _gui_zoom = _settings_client.gui.zoom_min;
UpdateCursorSize(); UpdateCursorSize();
LoadStringWidthTable(); LoadStringWidthTable();
ReInitAllWindows(true);
} }
} }