summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-26 14:40:23 +0000
committerrubidium <rubidium@openttd.org>2009-04-26 14:40:23 +0000
commitc21062a728fa37bb319c38b627d56f38150328f1 (patch)
treecb3b6627e2a8f672da7ad5b9b2a6ae4c0523f31f /src
parentf0bc464b184ff77e0a3ce84fac91f047ba06db0a (diff)
downloadopenttd-c21062a728fa37bb319c38b627d56f38150328f1.tar.xz
(svn r16159) -Change [FS#2846]: warn when multiline strings are drawn with DrawString and not DrawStringMultiLine.
Diffstat (limited to 'src')
-rw-r--r--src/gfx.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}
}