mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
882e495f5c
commit
c08c4224be
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue