Recalculated route step sprite sizes when changing zoom levels

This commit is contained in:
Jonathan G Rennison
2022-08-20 10:02:31 +01:00
parent 84da7ad7b6
commit 8c0eca28a8
4 changed files with 5 additions and 1 deletions

View File

@@ -604,6 +604,7 @@ struct GameOptionsWindow : Window {
_gui_zoom_cfg = new_zoom;
UpdateGUIZoom();
UpdateCursorSize();
UpdateRouteStepSpriteSize();
UpdateAllVirtCoords();
FixTitleGameZoom();
ReInitAllWindows(true);
@@ -618,6 +619,7 @@ struct GameOptionsWindow : Window {
GfxClearSpriteCache();
_font_zoom_cfg = new_zoom;
UpdateGUIZoom();
UpdateRouteStepSpriteSize();
LoadStringWidthTable();
UpdateAllVirtCoords();
ReInitAllWindows(true);