summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-01-27 19:52:08 +0000
committerfrosch <frosch@openttd.org>2010-01-27 19:52:08 +0000
commit9a1dddd13794ba8ad34603c0fbae92967a697bec (patch)
treef89ec54fc40352e2390a352c6eee89cbd2b647d5 /src
parent9a4a120b6e7f85e97944cab92d487c305dc67ee1 (diff)
downloadopenttd-9a1dddd13794ba8ad34603c0fbae92967a697bec.tar.xz
(svn r18928) -Fix (r18304): The date in case of 'early arrival' was misaligned in the timetable GUI.
Diffstat (limited to 'src')
-rw-r--r--src/timetable_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp
index 92eeba0c9..09338c202 100644
--- a/src/timetable_gui.cpp
+++ b/src/timetable_gui.cpp
@@ -439,7 +439,7 @@ struct TimetableWindow : Window {
DrawString(abbr_left, abbr_right, y, STR_TIMETABLE_ARRIVAL_ABBREVIATION, i == selected ? TC_WHITE : TC_BLACK);
if (this->show_expected && i / 2 == earlyID) {
SetArrivalDepartParams(0, 1, arr_dep[i / 2].arrival);
- DrawString(r.left + WD_FRAMERECT_LEFT, r.right - WD_FRAMERECT_RIGHT, y, STR_GREEN_STRING, i == selected ? TC_WHITE : TC_BLACK);
+ DrawString(time_left, time_right, y, STR_GREEN_STRING, i == selected ? TC_WHITE : TC_BLACK);
} else {
SetArrivalDepartParams(0, 1, arr_dep[i / 2].arrival + offset);
DrawString(time_left, time_right, y, show_late ? STR_RED_STRING : STR_JUST_STRING, i == selected ? TC_WHITE : TC_BLACK);