Mercurial > hg > openttd
changeset 15194:2d9d9be17bbe draft
(svn r19823) -Fix: Ensure that both texts of the newgrf gui download button fit.
author | alberth <alberth@openttd.org> |
---|---|
date | Sat, 15 May 2010 08:44:10 +0000 |
parents | 913c3b113c50 |
children | 2da417e03dcd |
files | src/newgrf_gui.cpp |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -581,6 +581,14 @@ *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; + } } }