summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-09-22 19:47:01 +0000
committerfrosch <frosch@openttd.org>2010-09-22 19:47:01 +0000
commitce83378e3de622b0759fad938b74ca83cea56949 (patch)
treeeb7223cae10433fac0be6aadab5ce6c39c5fc2e7 /src/industry_gui.cpp
parent60e5ab0d8797324c05f613f275b3d0da2436f185 (diff)
downloadopenttd-ce83378e3de622b0759fad938b74ca83cea56949.tar.xz
(svn r20837) -Fix [FS#4132]: Set height of industry directory to 5 lines like other lists.
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index b29f1186d..36fba46be 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -1190,6 +1190,7 @@ public:
d = maxdim(d, GetStringBoundingBox(this->GetIndustryString(this->industries[i])));
}
resize->height = d.height;
+ d.height *= 5;
d.width += padding.width + WD_FRAMERECT_LEFT + WD_FRAMERECT_RIGHT;
d.height += padding.height + WD_FRAMERECT_TOP + WD_FRAMERECT_BOTTOM;
*size = maxdim(*size, d);