mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(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
be53295ee8
commit
6f2ce87c5e
@ -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
Block a user