1
0
Fork 0

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

release/1.1
alberth 2010-05-15 08:44:10 +00:00
parent 895e3c312a
commit 3b8c4440c5
1 changed files with 8 additions and 0 deletions

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