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/town_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/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index 35544cd2e..c3bf70312 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -144,7 +144,7 @@ public: int exclusive_width = exclusive_size.width; int exclusive_y_offset = (FONT_HEIGHT_NORMAL - exclusive_size.height) / 2; - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; uint text_left = left + (rtl ? 0 : icon_width + exclusive_width + 4); uint text_right = right - (rtl ? icon_width + exclusive_width + 4 : 0); uint icon_left = rtl ? right - icon_width : left; @@ -398,7 +398,7 @@ public: if (cargo_needed_for_growth > 0) { DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_LEFT, y += FONT_HEIGHT_NORMAL, STR_TOWN_VIEW_CARGO_FOR_TOWNGROWTH); - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; uint cargo_text_left = r.left + WD_FRAMERECT_LEFT + (rtl ? 0 : 20); uint cargo_text_right = r.right - WD_FRAMERECT_RIGHT - (rtl ? 20 : 0); |