(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

@@ -601,7 +601,7 @@ struct DepotWindow : Window {
uint min_height = 0;
if (this->type == VEH_TRAIN) {
SetDParamMaxValue(0, 1000);
SetDParamMaxValue(0, 1000, 0, FS_SMALL);
SetDParam(1, 1);
this->count_width = GetStringBoundingBox(STR_TINY_BLACK_DECIMAL).width + WD_FRAMERECT_LEFT + WD_FRAMERECT_RIGHT;
} else {