From f31485a2f9e6cbbeb3f97e9a43cd89eab6d02008 Mon Sep 17 00:00:00 2001 From: terkhen Date: Thu, 18 Nov 2010 17:49:42 +0000 Subject: (svn r21241) -Fix: Display dragged vehicles in the correct orientation while using RTL languages. --- src/depot_gui.cpp | 2 +- src/group_gui.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 0e4d195bc..b94452ea4 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -501,7 +501,7 @@ struct DepotWindow : Window { this->sel = INVALID_VEHICLE; TrainDepotMoveVehicle(v, sel, gdvp.head); } else if (v != NULL) { - int image = v->GetImage(DIR_W); + int image = v->GetImage(_current_text_dir == TD_RTL ? DIR_E : DIR_W); SetObjectToPlaceWnd(image, GetVehiclePalette(v), HT_DRAG, this); this->sel = v->index; diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 62401cac4..8db34bebe 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -450,7 +450,8 @@ public: this->vehicle_sel = v->index; - SetObjectToPlaceWnd(v->GetImage(DIR_W), GetVehiclePalette(v), HT_DRAG, this); + int image = v->GetImage(_current_text_dir == TD_RTL ? DIR_E : DIR_W); + SetObjectToPlaceWnd(image, GetVehiclePalette(v), HT_DRAG, this); _cursor.vehchain = true; this->SetDirty(); -- cgit v1.2.3-70-g09d2