mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-26 07:59:09 +00:00
(svn r19823) -Fix: Ensure that both texts of the newgrf gui download button fit.
This commit is contained in:
@@ -581,6 +581,14 @@ struct NewGRFWindow : public Window {
|
|||||||
*size = maxdim(d, *size);
|
*size = maxdim(d, *size);
|
||||||
break;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user