diff options
author | rubidium <rubidium@openttd.org> | 2009-03-22 12:01:21 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-22 12:01:21 +0000 |
commit | 57174a9301aba626f8f25e86e93802636c4e8f45 (patch) | |
tree | 696c8445b29787af5e6368f4923172fb4f13e733 /src/depot_gui.cpp | |
parent | dfe5dad5f68250ec67a3cb5e69bc7f9f58f9a58c (diff) | |
download | openttd-57174a9301aba626f8f25e86e93802636c4e8f45.tar.xz |
(svn r15808) -Codechange: use the new DrawString API in a number of GUIs
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index e6988d08a..670d0d154 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -297,7 +297,7 @@ struct DepotWindow : Window { DrawSprite((v->vehstatus & VS_STOPPED) ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, PAL_NONE, x + diff_x, y + diff_y); SetDParam(0, v->unitnumber); - DrawString(x, y + 2, (uint16)(v->max_age - DAYS_IN_LEAP_YEAR) >= v->age ? STR_00E2 : STR_00E3, TC_FROMSTRING); + DrawString(x, this->widget[DEPOT_WIDGET_MATRIX].right - 1, y + 2, (uint16)(v->max_age - DAYS_IN_LEAP_YEAR) >= v->age ? STR_00E2 : STR_00E3, TC_FROMSTRING); } void DrawDepotWindow(Window *w) @@ -369,7 +369,7 @@ struct DepotWindow : Window { const Vehicle *u; DrawTrainImage(v, x + 50, y, this->sel, this->hscroll.cap - 29, 0); - DrawString(x, y + 2, STR_8816, TC_FROMSTRING); + DrawString(x, this->widget[DEPOT_WIDGET_MATRIX].right - 1, y + 2, STR_8816, TC_FROMSTRING); /* Draw the train counter */ i = 0; |