1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 21:49:10 +00:00

(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 895e3c312a
commit 3b8c4440c5

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