summaryrefslogtreecommitdiff
path: root/src/build_vehicle_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-06-01 14:33:48 +0000
committerfrosch <frosch@openttd.org>2013-06-01 14:33:48 +0000
commitce110eed32eef08e7ce1c35a2c5893698afee73a (patch)
tree0faa8ca975a1bf93428e6ac711692b7e79e7ec27 /src/build_vehicle_gui.cpp
parentf292a87dc499fdcf9ffaeaa6f1cd73fc998b31e3 (diff)
downloadopenttd-ce110eed32eef08e7ce1c35a2c5893698afee73a.tar.xz
(svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all of them.
Diffstat (limited to 'src/build_vehicle_gui.cpp')
-rw-r--r--src/build_vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index 461a3e691..ceea90c5b 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -890,7 +890,7 @@ void DrawEngineList(VehicleType type, int l, int r, int y, const GUIEngineList *
int count_width = 0;
if (show_count) {
replace_icon = GetSpriteSize(SPR_GROUP_REPLACE_ACTIVE);
- SetDParamMaxDigits(0, 3);
+ SetDParamMaxDigits(0, 3, FS_SMALL);
count_width = GetStringBoundingBox(STR_TINY_BLACK_COMA).width;
}