(svn r19823) -Fix: Ensure that both texts of the newgrf gui download button fit.

This commit is contained in:
alberth
2010-05-15 08:44:10 +00:00
parent b171226a13
commit 95b10740a9

View File

@@ -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;
}
}
}