mirror of https://github.com/OpenTTD/OpenTTD
(svn r23793) -Fix (r23791): height computation was missing a few pixels so the last line was still missing
parent
21c2f9377d
commit
710d44dec3
|
@ -218,7 +218,8 @@ struct NewGRFParametersWindow : public Window {
|
||||||
if (par_info == NULL) continue;
|
if (par_info == NULL) continue;
|
||||||
const char *desc = GetGRFStringFromGRFText(par_info->desc);
|
const char *desc = GetGRFStringFromGRFText(par_info->desc);
|
||||||
if (desc == NULL) continue;
|
if (desc == NULL) continue;
|
||||||
const Dimension d = GetStringMultiLineBoundingBox(desc, suggestion);
|
Dimension d = GetStringMultiLineBoundingBox(desc, suggestion);
|
||||||
|
d.height += WD_TEXTPANEL_TOP + WD_TEXTPANEL_BOTTOM;
|
||||||
suggestion = maxdim(d, suggestion);
|
suggestion = maxdim(d, suggestion);
|
||||||
}
|
}
|
||||||
size->height = suggestion.height;
|
size->height = suggestion.height;
|
||||||
|
|
Loading…
Reference in New Issue