diff options
author | yexo <yexo@openttd.org> | 2012-01-12 20:03:35 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2012-01-12 20:03:35 +0000 |
commit | 710d44dec3ab14212fe69f88e8cd0d5306dd8272 (patch) | |
tree | 48e6f701d8035b511f4a53f41917902980dfe5bd /src | |
parent | 21c2f9377db059aababc1a2a74acfade77808512 (diff) | |
download | openttd-710d44dec3ab14212fe69f88e8cd0d5306dd8272.tar.xz |
(svn r23793) -Fix (r23791): height computation was missing a few pixels so the last line was still missing
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 79a845ad0..debda8965 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -218,7 +218,8 @@ struct NewGRFParametersWindow : public Window { if (par_info == NULL) continue; const char *desc = GetGRFStringFromGRFText(par_info->desc); 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); } size->height = suggestion.height; |