diff --git a/src/gfx_func.h b/src/gfx_func.h index 6c37a97f04..6fe7d071da 100644 --- a/src/gfx_func.h +++ b/src/gfx_func.h @@ -157,6 +157,7 @@ void SetMouseCursor(CursorID cursor, PaletteID pal); void SetAnimatedMouseCursor(const AnimCursor *table); void CursorTick(); void UpdateCursorSize(); +void UpdateRouteStepSpriteSize(); bool ChangeResInGame(int w, int h); void SortResolutions(); bool ToggleFullScreen(bool fs); diff --git a/src/gfxinit.cpp b/src/gfxinit.cpp index 3eb7227553..011e344250 100644 --- a/src/gfxinit.cpp +++ b/src/gfxinit.cpp @@ -388,7 +388,7 @@ void CheckBlitter() ReInitAllWindows(false); } -static void UpdateRouteStepSpriteSize() +void UpdateRouteStepSpriteSize() { extern uint _vp_route_step_width; extern uint _vp_route_step_height_top; diff --git a/src/settings.cpp b/src/settings.cpp index cc9968652e..b32af09e2a 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1252,6 +1252,7 @@ static void ZoomMinMaxChanged(int32 new_value) /* Restrict GUI zoom if it is no longer available. */ _gui_zoom = _settings_client.gui.zoom_min; UpdateCursorSize(); + UpdateRouteStepSpriteSize(); UpdateFontHeightCache(); LoadStringWidthTable(); } diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index b23f434e60..e3bc870292 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -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);