diff options
author | michi_cc <michi_cc@openttd.org> | 2012-11-10 22:37:14 +0000 |
---|---|---|
committer | michi_cc <michi_cc@openttd.org> | 2012-11-10 22:37:14 +0000 |
commit | 55cff8407ffd6ee63765b5c31863843e2c9fc4e9 (patch) | |
tree | 54249359b4b922a300c1a593d2178458257d0003 /src | |
parent | 33ff55a8f1287643986621e7130e8acddf42b221 (diff) | |
download | openttd-55cff8407ffd6ee63765b5c31863843e2c9fc4e9.tar.xz |
(svn r24694) -Fix (r18136): Road vehicle selection frame wasn't drawn properly in the depot window.
Diffstat (limited to 'src')
-rw-r--r-- | src/roadveh_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp index 5562e981d..03e283062 100644 --- a/src/roadveh_gui.cpp +++ b/src/roadveh_gui.cpp @@ -153,7 +153,7 @@ void DrawRoadVehImage(const Vehicle *v, int left, int right, int y, VehicleID se } if (v->index == selection) { - DrawFrameRect((rtl ? px : left) - 1, y - 1, (rtl ? px : right) - 1, y + 12, COLOUR_WHITE, FR_BORDERONLY); + DrawFrameRect((rtl ? px : 0), 0, (rtl ? max_width : px) - 1, 12, COLOUR_WHITE, FR_BORDERONLY); } _cur_dpi = old_dpi; |