summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-05-15 08:44:10 +0000
committeralberth <alberth@openttd.org>2010-05-15 08:44:10 +0000
commit3b8c4440c54f9af980e580dc0c6e03acd2f88a4b (patch)
tree92ce09d07636837c1a9b3882996cebbe9d0c94d2
parent895e3c312a244c4ffd1c17afbfaf858514e7a38f (diff)
downloadopenttd-3b8c4440c54f9af980e580dc0c6e03acd2f88a4b.tar.xz
(svn r19823) -Fix: Ensure that both texts of the newgrf gui download button fit.
-rw-r--r--src/newgrf_gui.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 80264f5fe..7c5360ec3 100644
--- a/src/newgrf_gui.cpp
+++ b/src/newgrf_gui.cpp
@@ -581,6 +581,14 @@ struct NewGRFWindow : public Window {
*size = maxdim(d, *size);
break;
}
+
+ case SNGRFS_CONTENT_DOWNLOAD: {
+ Dimension d = GetStringBoundingBox(STR_NEWGRF_SETTINGS_FIND_MISSING_CONTENT_BUTTON);
+ *size = maxdim(d, GetStringBoundingBox(STR_INTRO_ONLINE_CONTENT));
+ size->width += padding.width;
+ size->height += padding.height;
+ break;
+ }
}
}