Mercurial > hg > openttd
changeset 14371:46e80f3c8efa draft
(svn r18928) -Fix (r18304): The date in case of 'early arrival' was misaligned in the timetable GUI.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 27 Jan 2010 19:52:08 +0000 |
parents | 6856c05710cc |
children | b42ffbf38c4a |
files | src/timetable_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -439,7 +439,7 @@ 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);