mirror of https://github.com/OpenTTD/OpenTTD
(svn r26036) -Fix [FS#5809]: multi line text was handled incorrectly causing glitches
parent
88216aa520
commit
a36fb735c0
|
@ -569,7 +569,7 @@ static FallbackParagraphLayout *GetParagraphLayout(WChar *buff, WChar *buff_end,
|
||||||
* @tparam T The type of layouter we want.
|
* @tparam T The type of layouter we want.
|
||||||
*/
|
*/
|
||||||
template <typename T>
|
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);
|
if (line.buffer != NULL) free(line.buffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue