diff options
author | rubidium <rubidium@openttd.org> | 2009-03-21 20:12:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-21 20:12:12 +0000 |
commit | 45f189fdcaedd5f95dcbb3ce9a60f746603859e1 (patch) | |
tree | 963e15fde656667f8ede17763a536b8ec0282ff9 /src/station_gui.cpp | |
parent | 9fcff01850c4c18543c60cf477926b793052f1fd (diff) | |
download | openttd-45f189fdcaedd5f95dcbb3ce9a60f746603859e1.tar.xz |
(svn r15785) -Codechange: remove the *Truncated part of the old text drawing API.
Diffstat (limited to 'src/station_gui.cpp')
-rw-r--r-- | src/station_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/station_gui.cpp b/src/station_gui.cpp index 28b82a3d5..565402649 100644 --- a/src/station_gui.cpp +++ b/src/station_gui.cpp @@ -827,7 +827,7 @@ struct StationViewWindow : public Window { SetDParam(0, cd->cargo); SetDParam(1, cd->count); SetDParam(2, cd->source); - DrawStringRightAlignedTruncated(x + width, y, STR_EN_ROUTE_FROM, TC_FROMSTRING, width); + DrawString(x, x + width, y, STR_EN_ROUTE_FROM, TC_FROMSTRING, SA_RIGHT); } y += 10; @@ -1143,7 +1143,7 @@ struct SelectStationWindow : Window { uint y = 17; if (this->vscroll.pos == 0) { - DrawStringTruncated(3, y, STR_CREATE_SPLITTED_STATION, TC_FROMSTRING, this->widget[JSW_PANEL].right - 5); + DrawString(3, this->widget[JSW_PANEL].right - 2, y, STR_CREATE_SPLITTED_STATION, TC_FROMSTRING); y += 10; } @@ -1154,7 +1154,7 @@ struct SelectStationWindow : Window { const Station *st = GetStation(_stations_nearby_list[i - 1]); SetDParam(0, st->index); SetDParam(1, st->facilities); - DrawStringTruncated(3, y, STR_3049_0, TC_FROMSTRING, this->widget[JSW_PANEL].right - 5); + DrawString(3, this->widget[JSW_PANEL].right - 2, y, STR_3049_0, TC_FROMSTRING); } } |