1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 02:49:10 +00:00

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

This caused duplicate ReInit when changing interface scale.
This commit is contained in:
2023-11-29 12:35:00 +00:00
parent 6f35f3274f
commit 102e7866f4
2 changed files with 1 additions and 2 deletions

View File

@@ -1391,8 +1391,6 @@ void LoadStringWidthTable(bool monospace)
_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;
UpdateCursorSize();
LoadStringWidthTable();
ReInitAllWindows(true);
}
}