1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 21:49:10 +00:00

(svn r26036) -Fix [FS#5809]: multi line text was handled incorrectly causing glitches

This commit is contained in:
rubidium
2013-11-18 19:35:06 +00:00
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);