(svn r25313) -Fix: Do not assume '8' to be the broadest digit, but test all of them.

This commit is contained in:
frosch
2013-06-01 14:33:48 +00:00
parent f292a87dc4
commit ce110eed32
9 changed files with 32 additions and 11 deletions

View File

@@ -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;
}