From c21062a728fa37bb319c38b627d56f38150328f1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 26 Apr 2009 14:40:23 +0000 Subject: (svn r16159) -Change [FS#2846]: warn when multiline strings are drawn with DrawString and not DrawStringMultiLine. --- src/gfx.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gfx.cpp b/src/gfx.cpp index f67698dd6..37f9a3d34 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -363,6 +363,8 @@ static int TruncateString(char *str, int maxw) } else if (c == SCC_BIGFONT) { size = FS_LARGE; ddd = GetCharacterWidth(size, '.') * 3; + } else if (c == '\n') { + DEBUG(misc, 0, "Drawing string using newlines with DrawString instead of DrawStringMultiLine. Please notify the developers of this: [%s]", str); } } -- cgit v1.2.3-70-g09d2