Departure boards: Fix vehicle type icon in right-to-left languages
This commit is contained in:
@@ -814,7 +814,8 @@ void DeparturesWindow<Twaypoint>::DrawDeparturesListItems(const Rect &r) const
|
|||||||
|
|
||||||
type += offset;
|
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. */
|
/* The icons to show with the destination and via stations. */
|
||||||
|
Reference in New Issue
Block a user