mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 18:39:10 +00:00
(svn r16796) -Fix [FS#3030]: Closebox 'X' is a string. (Rubidium)
This commit is contained in:
@@ -1943,7 +1943,7 @@ int NWidgetLeaf::SetupSmallestSize(Window *w)
|
||||
break;
|
||||
|
||||
case WWT_CLOSEBOX:
|
||||
d2 = maxdim(d2, GetSpriteSize(this->widget_data));
|
||||
d2 = maxdim(d2, GetStringBoundingBox(this->widget_data));
|
||||
d2.height += WD_CLOSEBOX_TOP;
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user