(svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations.

This commit is contained in:
frosch
2012-12-08 17:18:51 +00:00
parent 3a58d60e9f
commit eb20798aae
18 changed files with 82 additions and 49 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);
SetDParam(0, 999);
SetDParamMaxDigits(0, 3);
count_width = GetStringBoundingBox(STR_TINY_BLACK_COMA).width;
}