diff options
author | rubidium <rubidium@openttd.org> | 2009-04-26 14:40:23 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-04-26 14:40:23 +0000 |
commit | c21062a728fa37bb319c38b627d56f38150328f1 (patch) | |
tree | cb3b6627e2a8f672da7ad5b9b2a6ae4c0523f31f /src | |
parent | f0bc464b184ff77e0a3ce84fac91f047ba06db0a (diff) | |
download | openttd-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.cpp | 2 |
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); } } |