From d236c576008da14669c33ba4b628c81e4e486ec1 Mon Sep 17 00:00:00 2001 From: frosch Date: Sat, 27 Feb 2021 13:55:33 +0100 Subject: Fix: yet another place where the vehicle-cursor did not account for the interface zoom level. --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index b44afcc51..8e2088815 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -3171,7 +3171,7 @@ void SetMouseCursorVehicle(const Vehicle *v, EngineImageType image_type) total_width += GetSingleVehicleWidth(v, image_type); } - int offs = ((int)VEHICLEINFO_FULL_VEHICLE_WIDTH - total_width) / 2; + int offs = (ScaleGUITrad(VEHICLEINFO_FULL_VEHICLE_WIDTH) - total_width) / 2; if (rtl) offs = -offs; for (uint i = 0; i < _cursor.sprite_count; ++i) { _cursor.sprite_pos[i].x += offs; -- cgit v1.2.3-54-g00ecf