diff options
author | rubidium <rubidium@openttd.org> | 2009-04-26 15:26:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-26 15:26:19 +0000 |
commit | 7dd677ced22abb688b2ed69f99faed211f3554b1 (patch) | |
tree | df4ab2d279bb9ba905f4c04a0e80fa48cbeaa15c /src/timetable_gui.cpp | |
parent | 3301afa5c3b2fe2bf24ef7ab9333df8a88334fb9 (diff) | |
download | openttd-7dd677ced22abb688b2ed69f99faed211f3554b1.tar.xz |
(svn r16162) -Codechange: remove needless TC_ colours from DrawString when they are part of strings and add some colours to a few strings.
Diffstat (limited to 'src/timetable_gui.cpp')
-rw-r--r-- | src/timetable_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timetable_gui.cpp b/src/timetable_gui.cpp index 456c127c2..fedddca67 100644 --- a/src/timetable_gui.cpp +++ b/src/timetable_gui.cpp @@ -228,16 +228,16 @@ struct TimetableWindow : Window { if (total_time != 0) { SetTimetableParams(0, 1, total_time); - DrawString(this->widget[TTV_SUMMARY_PANEL].left + 2, this->widget[TTV_SUMMARY_PANEL].right - 2, y, complete ? STR_TIMETABLE_TOTAL_TIME : STR_TIMETABLE_TOTAL_TIME_INCOMPLETE, TC_BLACK); + DrawString(this->widget[TTV_SUMMARY_PANEL].left + 2, this->widget[TTV_SUMMARY_PANEL].right - 2, y, complete ? STR_TIMETABLE_TOTAL_TIME : STR_TIMETABLE_TOTAL_TIME_INCOMPLETE); } } y += 10; if (v->lateness_counter == 0 || (!_settings_client.gui.timetable_in_ticks && v->lateness_counter / DAY_TICKS == 0)) { - DrawString(this->widget[TTV_SUMMARY_PANEL].left + 2, this->widget[TTV_SUMMARY_PANEL].right - 2, y, STR_TIMETABLE_STATUS_ON_TIME, TC_BLACK); + DrawString(this->widget[TTV_SUMMARY_PANEL].left + 2, this->widget[TTV_SUMMARY_PANEL].right - 2, y, STR_TIMETABLE_STATUS_ON_TIME); } else { SetTimetableParams(0, 1, abs(v->lateness_counter)); - DrawString(this->widget[TTV_SUMMARY_PANEL].left + 2, this->widget[TTV_SUMMARY_PANEL].right - 2, y, v->lateness_counter < 0 ? STR_TIMETABLE_STATUS_EARLY : STR_TIMETABLE_STATUS_LATE, TC_BLACK); + DrawString(this->widget[TTV_SUMMARY_PANEL].left + 2, this->widget[TTV_SUMMARY_PANEL].right - 2, y, v->lateness_counter < 0 ? STR_TIMETABLE_STATUS_EARLY : STR_TIMETABLE_STATUS_LATE); } } |