mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 02:19:41 +00:00
(svn r26036) -Fix [FS#5809]: multi line text was handled incorrectly causing glitches
This commit is contained in:
parent
88216aa520
commit
a36fb735c0
@ -569,7 +569,7 @@ static FallbackParagraphLayout *GetParagraphLayout(WChar *buff, WChar *buff_end,
|
||||
* @tparam T The type of layouter we want.
|
||||
*/
|
||||
template <typename T>
|
||||
static inline void GetLayouter(Layouter::LineCacheItem &line, const char *str, FontState state)
|
||||
static inline void GetLayouter(Layouter::LineCacheItem &line, const char *&str, FontState &state)
|
||||
{
|
||||
if (line.buffer != NULL) free(line.buffer);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user