diff options
author | frosch <frosch@openttd.org> | 2012-06-01 15:08:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2012-06-01 15:08:40 +0000 |
commit | 65f51240cde28ea7d778794f48b8b6d022c8995c (patch) | |
tree | 11681a55a17fb77f98175f8bfaf19a48964934e6 /src/newgrf_gui.cpp | |
parent | e240f660f0ea004049d199e0eb36cc69372b8265 (diff) | |
download | openttd-65f51240cde28ea7d778794f48b8b6d022c8995c.tar.xz |
(svn r24313) -Fix: Some obiwans wrt. clicking on setting buttons.
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 620c476bc..df72c3732 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -321,7 +321,7 @@ struct NewGRFParametersWindow : public Window { const NWidgetBase *wid = this->GetWidget<NWidgetBase>(WID_NP_BACKGROUND); int x = pt.x - wid->pos_x; - if (_current_text_dir == TD_RTL) x = wid->current_x - x; + if (_current_text_dir == TD_RTL) x = wid->current_x - 1 - x; x -= 4; GRFParameterInfo *par_info = (num < this->grf_config->param_info.Length()) ? this->grf_config->param_info[num] : NULL; |