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/newgrf_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/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 3ee1a8a19..6836b13e7 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -243,7 +243,7 @@ struct NewGRFParametersWindow : public Window { return; } - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; uint buttons_left = rtl ? r.right - 23 : r.left + 4; uint text_left = r.left + (rtl ? WD_FRAMERECT_LEFT : 28); uint text_right = r.right - (rtl ? 28 : WD_FRAMERECT_RIGHT); @@ -316,7 +316,7 @@ struct NewGRFParametersWindow : public Window { const NWidgetBase *wid = this->GetWidget<NWidgetBase>(GRFPAR_WIDGET_BACKGROUND); int x = pt.x - wid->pos_x; - if (_dynlang.text_dir == TD_RTL) x = wid->current_x - x; + if (_current_text_dir == TD_RTL) x = wid->current_x - x; x -= 4; GRFParameterInfo *par_info = (num < this->grf_config->param_info.Length()) ? this->grf_config->param_info[num] : NULL; @@ -700,7 +700,7 @@ struct NewGRFWindow : public QueryStringBaseWindow { int sprite_offset_y = (step_height - 10) / 2; int offset_y = (step_height - FONT_HEIGHT_NORMAL) / 2; - bool rtl = _dynlang.text_dir == TD_RTL; + bool rtl = _current_text_dir == TD_RTL; uint text_left = rtl ? r.left + WD_FRAMERECT_LEFT : r.left + 25; uint text_right = rtl ? r.right - 25 : r.right - WD_FRAMERECT_RIGHT; uint square_left = rtl ? r.right - 15 : r.left + 5; |