summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-21 17:22:37 +0000
committerrubidium <rubidium@openttd.org>2009-11-21 17:22:37 +0000
commite8141ba9d5999b5be69c9936e0b3bbf5ee59f4c9 (patch)
tree0b1a93cf7285b19328ccc376ae696e3f7a3dfcd3
parenta274cc6a606c65003a59650182fc31803cfae07b (diff)
downloadopenttd-e8141ba9d5999b5be69c9936e0b3bbf5ee59f4c9.tar.xz
(svn r18208) -Fix [FS#3321]: in some cases the size of the land information window wasn't properly calculated
-rw-r--r--src/misc_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 048f8fb8c..18c39d95e 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -133,7 +133,7 @@ public:
uint width = GetStringBoundingBox(this->landinfo_data[LAND_INFO_MULTICENTER_LINE]).width + WD_FRAMETEXT_LEFT + WD_FRAMETEXT_RIGHT;
size->width = max(size->width, min(300u, width));
SetDParamStr(0, this->landinfo_data[LAND_INFO_MULTICENTER_LINE]);
- size->height += GetStringHeight(STR_JUST_RAW_STRING, size->width - WD_FRAMERECT_LEFT - WD_FRAMERECT_RIGHT);
+ size->height += GetStringHeight(STR_JUST_RAW_STRING, size->width - WD_FRAMETEXT_LEFT - WD_FRAMETEXT_RIGHT);
}
}