Fix: yet another place where the vehicle-cursor did not account for the interface zoom level.

This commit is contained in:
frosch 2021-02-27 13:55:33 +01:00 committed by Michael Lutz
parent ef4cec9382
commit d236c57600
1 changed files with 1 additions and 1 deletions

View File

@ -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;