From c08c4224bede1a8b0d0de776fde50226a917fb3c Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 9 Apr 2009 01:10:35 +0000 Subject: (svn r15997) -Fix [FS#2811]: multiline string truncation broke extending the industry window when there are more lines of information --- src/industry_gui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/industry_gui.cpp') 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(); } } -- cgit v1.2.3-70-g09d2