summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-17 15:26:46 +0000
committerrubidium <rubidium@openttd.org>2009-11-17 15:26:46 +0000
commitddffeb791e13e1b1a9b9b7f4c5e8ae12705bbc03 (patch)
treecc6625e1b0e407f7fbc51f969add834172a12c44 /src
parente297f79b7f16eb2393cce7d0081acb59349341ca (diff)
downloadopenttd-ddffeb791e13e1b1a9b9b7f4c5e8ae12705bbc03.tar.xz
(svn r18144) -Codechange: ignore SETX(Y) spacing in vehicle details and graphical glitches due to (incorrect) SETX(Y) usage
Diffstat (limited to 'src')
-rw-r--r--src/aircraft_gui.cpp2
-rw-r--r--src/roadveh_gui.cpp2
-rw-r--r--src/ship_gui.cpp2
-rw-r--r--src/train_gui.cpp4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/aircraft_gui.cpp b/src/aircraft_gui.cpp
index 3ccea1c52..f19ba61ae 100644
--- a/src/aircraft_gui.cpp
+++ b/src/aircraft_gui.cpp
@@ -40,7 +40,7 @@ void DrawAircraftDetails(const Aircraft *v, int left, int right, int y)
SetDParam(0, u->engine_type);
SetDParam(1, u->build_year);
SetDParam(2, u->value);
- DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE);
+ DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP);
SetDParam(0, u->cargo_type);
SetDParam(1, u->cargo_cap);
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index 43c00f635..7e874e108 100644
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -40,7 +40,7 @@ void DrawRoadVehDetails(const Vehicle *v, int left, int right, int y)
SetDParam(0, v->engine_type);
SetDParam(1, v->build_year);
SetDParam(2, v->value);
- DrawString(left, right, y + y_offset, STR_VEHICLE_INFO_BUILT_VALUE);
+ DrawString(left, right, y + y_offset, STR_VEHICLE_INFO_BUILT_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP);
if (rv->HasArticulatedPart()) {
CargoArray max_cargo;
diff --git a/src/ship_gui.cpp b/src/ship_gui.cpp
index b76d5fd86..ec426a749 100644
--- a/src/ship_gui.cpp
+++ b/src/ship_gui.cpp
@@ -72,7 +72,7 @@ void DrawShipDetails(const Vehicle *v, int left, int right, int y)
SetDParam(0, v->engine_type);
SetDParam(1, v->build_year);
SetDParam(2, v->value);
- DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE);
+ DrawString(left, right, y, STR_VEHICLE_INFO_BUILT_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP);
SetDParam(0, v->cargo_type);
SetDParam(1, v->cargo_cap);
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index f13b6c0db..6f2046038 100644
--- a/src/train_gui.cpp
+++ b/src/train_gui.cpp
@@ -159,12 +159,12 @@ static void TrainDetailsInfoTab(const Vehicle *v, int left, int right, int y)
if (RailVehInfo(v->engine_type)->railveh_type == RAILVEH_WAGON) {
SetDParam(0, v->engine_type);
SetDParam(1, v->value);
- DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_WAGON_VALUE);
+ DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_WAGON_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP);
} else {
SetDParam(0, v->engine_type);
SetDParam(1, v->build_year);
SetDParam(2, v->value);
- DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_ENGINE_BUILT_AND_VALUE);
+ DrawString(left, right, y, STR_VEHICLE_DETAILS_TRAIN_ENGINE_BUILT_AND_VALUE, TC_FROMSTRING, SA_LEFT | SA_STRIP);
}
}