mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r20837) -Fix [FS#4132]: Set height of industry directory to 5 lines like other lists.
This commit is contained in:
parent
60e5ab0d87
commit
ce83378e3d
|
@ -1190,6 +1190,7 @@ public:
|
||||||
d = maxdim(d, GetStringBoundingBox(this->GetIndustryString(this->industries[i])));
|
d = maxdim(d, GetStringBoundingBox(this->GetIndustryString(this->industries[i])));
|
||||||
}
|
}
|
||||||
resize->height = d.height;
|
resize->height = d.height;
|
||||||
|
d.height *= 5;
|
||||||
d.width += padding.width + WD_FRAMERECT_LEFT + WD_FRAMERECT_RIGHT;
|
d.width += padding.width + WD_FRAMERECT_LEFT + WD_FRAMERECT_RIGHT;
|
||||||
d.height += padding.height + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM;
|
d.height += padding.height + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM;
|
||||||
*size = maxdim(*size, d);
|
*size = maxdim(*size, d);
|
||||||
|
|
Loading…
Reference in New Issue