summaryrefslogtreecommitdiff
path: root/src/industry_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-09 01:10:35 +0000
committerrubidium <rubidium@openttd.org>2009-04-09 01:10:35 +0000
commitc08c4224bede1a8b0d0de776fde50226a917fb3c (patch)
tree2f25dc176973197cca15980c9deaaafbe91cf360 /src/industry_gui.cpp
parent882e495f5c93512b39764273a61ead8f2954d6b6 (diff)
downloadopenttd-c08c4224bede1a8b0d0de776fde50226a917fb3c.tar.xz
(svn r15997) -Fix [FS#2811]: multiline string truncation broke extending the industry window when there are more lines of information
Diffstat (limited to 'src/industry_gui.cpp')
-rw-r--r--src/industry_gui.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp
index db772ca7b..5baecc098 100644
--- a/src/industry_gui.cpp
+++ b/src/industry_gui.cpp
@@ -567,8 +567,10 @@ public:
y += 10;
PrepareTextRefStackUsage(6);
- /* Use all the available space left from where we stand up to the end of the window */
- y = DrawStringMultiLine(wi->left + 2, wi->right -2, y, wi->bottom, message);
+ /* Use all the available space left from where we stand up to the
+ * end of the window. We ALSO enlarge the window if needed, so we
+ * can 'go' wild with the bottom of the window. */
+ y = DrawStringMultiLine(wi->left + 2, wi->right - 2, y, UINT16_MAX, message);
StopTextRefStackUsage();
}
}