(svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations.
This commit is contained in:
@@ -117,10 +117,8 @@ struct SetDateWindow : Window {
|
||||
break;
|
||||
|
||||
case WID_SD_YEAR:
|
||||
for (Year i = this->min_year; i <= this->max_year; i++) {
|
||||
SetDParam(0, i);
|
||||
d = maxdim(d, GetStringBoundingBox(STR_JUST_INT));
|
||||
}
|
||||
SetDParamMaxValue(0, this->max_year);
|
||||
d = maxdim(d, GetStringBoundingBox(STR_JUST_INT));
|
||||
break;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user