diff options
author | rubidium <rubidium@openttd.org> | 2010-11-13 09:56:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-11-13 09:56:25 +0000 |
commit | 30637a8340844abce2aab469295b4160d1f2d532 (patch) | |
tree | 9fd08dd8b612649aa6e27fa4f36ca4be3b587e97 /src/order_gui.cpp | |
parent | 43f807a9189a1dde0260f40f8553bcc8050a3e1d (diff) | |
download | openttd-30637a8340844abce2aab469295b4160d1f2d532.tar.xz |
(svn r21157) -Codechange: remove information about the text direction out of the language "list"
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 1fb52dc80..2a6dacaf8 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -188,7 +188,7 @@ static int DepotActionStringIndex(const Order *order) */ void DrawOrderString(const Vehicle *v, const Order *order, int order_index, int y, bool selected, bool timetable, int left, int middle, int right) { - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; SpriteID sprite = rtl ? SPR_ARROW_LEFT : SPR_ARROW_RIGHT; Dimension sprite_size = GetSpriteSize(sprite); @@ -944,7 +944,7 @@ public: { if (widget != ORDER_WIDGET_ORDER_LIST) return; - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; SetDParam(0, 99); int index_column_width = GetStringBoundingBox(STR_ORDER_INDEX).width + GetSpriteSize(rtl ? SPR_ARROW_RIGHT : SPR_ARROW_LEFT).width + 3; int middle = rtl ? r.right - WD_FRAMETEXT_RIGHT - index_column_width : r.left + WD_FRAMETEXT_LEFT + index_column_width; |