forked from mirror/OpenTTD
(svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations.
This commit is contained in:
@@ -274,7 +274,7 @@ struct SignListWindow : Window, SignList {
|
||||
}
|
||||
|
||||
case WID_SIL_CAPTION:
|
||||
SetDParam(0, max<size_t>(1000, Sign::GetPoolSize()));
|
||||
SetDParamMaxValue(0, Sign::GetPoolSize(), 3);
|
||||
*size = GetStringBoundingBox(STR_SIGN_LIST_CAPTION);
|
||||
size->height += padding.height;
|
||||
size->width += padding.width;
|
||||
|
Reference in New Issue
Block a user