diff options
author | rubidium <rubidium@openttd.org> | 2008-07-14 20:18:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-14 20:18:06 +0000 |
commit | be722412facf7815181529e503d1262542517431 (patch) | |
tree | 8bbc36fdfa2142e3d60c0dafd51136970dc379da /src/timetable_gui.cpp | |
parent | 9895afb43ef7be1900f8762e0ee58e7eba91302c (diff) | |
download | openttd-be722412facf7815181529e503d1262542517431.tar.xz |
(svn r13702) -Fix: do not overflow the order/timetable window when 'long' orders are displayed.
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r-- | src/timetable_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 3f255c1aa..14bb663ea 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -124,7 +124,7 @@ struct TimetableWindow : Window { if (i - this->vscroll.pos >= this->vscroll.cap) break; if (i % 2 == 0) { - DrawOrderString(v, order, order_id, y, i == selected, true); + DrawOrderString(v, order, order_id, y, i == selected, true, this->widget[TTV_TIMETABLE_PANEL].right - 4); order_id++; @@ -144,7 +144,7 @@ struct TimetableWindow : Window { string = STR_TIMETABLE_TRAVEL_FOR; } - DrawString(22, y, string, (i == selected) ? TC_WHITE : TC_BLACK); + DrawStringTruncated(2, y, string, (i == selected) ? TC_WHITE : TC_BLACK, this->widget[TTV_TIMETABLE_PANEL].right - 4); if (final_order) break; } |