summaryrefslogtreecommitdiff
path: root/src/vehicle_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-21 19:10:26 +0000
committerrubidium <rubidium@openttd.org>2009-03-21 19:10:26 +0000
commit8a758beec30dcf3c43d69d5adafbac59f296b9f1 (patch)
tree9ca3a33b849822c4e63bc8b455a7c3b5bb27da28 /src/vehicle_gui.cpp
parent971ed8d2a328d0c1ded25fa61496b5b47304c6ac (diff)
downloadopenttd-8a758beec30dcf3c43d69d5adafbac59f296b9f1.tar.xz
(svn r15782) -Codechange: replace some calls to the all text drawing API to the new one.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 97d4df34e..e215e74dc 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -1938,7 +1938,7 @@ struct VehicleViewWindow : Window {
/* draw the flag plus orders */
DrawSprite(v->vehstatus & VS_STOPPED ? SPR_FLAG_VEH_STOPPED : SPR_FLAG_VEH_RUNNING, PAL_NONE, 2, this->widget[VVW_WIDGET_START_STOP_VEH].top + 1);
- DrawStringCenteredTruncated(this->widget[VVW_WIDGET_START_STOP_VEH].left + 8, this->widget[VVW_WIDGET_START_STOP_VEH].right, this->widget[VVW_WIDGET_START_STOP_VEH].top + 1, str, TC_FROMSTRING);
+ DrawString(this->widget[VVW_WIDGET_START_STOP_VEH].left + 8, this->widget[VVW_WIDGET_START_STOP_VEH].right, this->widget[VVW_WIDGET_START_STOP_VEH].top + 1, str, TC_FROMSTRING, TA_CENTER);
this->DrawViewport();
}