(svn r15997) -Fix [FS#2811]: multiline string truncation broke extending the industry window when there are more lines of information

This commit is contained in:
rubidium 2009-04-09 01:10:35 +00:00
parent 882e495f5c
commit c08c4224be
1 changed files with 4 additions and 2 deletions

View File

@ -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();
}
}