summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2012-01-12 20:03:35 +0000
committeryexo <yexo@openttd.org>2012-01-12 20:03:35 +0000
commit710d44dec3ab14212fe69f88e8cd0d5306dd8272 (patch)
tree48e6f701d8035b511f4a53f41917902980dfe5bd /src
parent21c2f9377db059aababc1a2a74acfade77808512 (diff)
downloadopenttd-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.cpp3
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;