Departure boards: Fix vehicle type icon in right-to-left languages

This commit is contained in:
Jonathan G Rennison
2023-04-16 19:42:53 +01:00
parent b7e12189cf
commit 4f9aa70c11

View File

@@ -814,7 +814,8 @@ void DeparturesWindow<Twaypoint>::DrawDeparturesListItems(const Rect &r) const
type += offset;
DrawString(text_left + time_width + 3, text_left + time_width + type_width + 3, y, type);
const int icon_left = ltr ? text_left + time_width + ScaleGUITrad(3) : text_right - time_width - ScaleGUITrad(3) - type_width;
DrawString(icon_left, icon_left + type_width, y, type);
}
/* The icons to show with the destination and via stations. */