mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r16796) -Fix [FS#3030]: Closebox 'X' is a string. (Rubidium)
This commit is contained in:
parent
b5b743bcba
commit
e3f4293401
@ -1943,7 +1943,7 @@ int NWidgetLeaf::SetupSmallestSize(Window *w)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case WWT_CLOSEBOX:
|
case WWT_CLOSEBOX:
|
||||||
d2 = maxdim(d2, GetSpriteSize(this->widget_data));
|
d2 = maxdim(d2, GetStringBoundingBox(this->widget_data));
|
||||||
d2.height += WD_CLOSEBOX_TOP;
|
d2.height += WD_CLOSEBOX_TOP;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user