aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/font
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-29 18:22:10 +0200
committerEinar Johan Trøan Sømåen2012-07-29 18:24:08 +0200
commit6b07218eb24e91865eee277758112e5bb4fecd97 (patch)
tree2b78f1bc62bc73b910a95063c57da690eac8b10a /engines/wintermute/base/font
parent20e2ec4ff4d869ba54edf5b930d84340245292b6 (diff)
downloadscummvm-rg350-6b07218eb24e91865eee277758112e5bb4fecd97.tar.gz
scummvm-rg350-6b07218eb24e91865eee277758112e5bb4fecd97.tar.bz2
scummvm-rg350-6b07218eb24e91865eee277758112e5bb4fecd97.zip
WINTERMUTE: Remove statics and silence spam in debug console.
Diffstat (limited to 'engines/wintermute/base/font')
-rw-r--r--engines/wintermute/base/font/base_font_truetype.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/wintermute/base/font/base_font_truetype.cpp b/engines/wintermute/base/font/base_font_truetype.cpp
index a141c68db7..b80bbdc41d 100644
--- a/engines/wintermute/base/font/base_font_truetype.cpp
+++ b/engines/wintermute/base/font/base_font_truetype.cpp
@@ -568,12 +568,7 @@ bool BaseFontTT::initFont() {
//////////////////////////////////////////////////////////////////////////
void BaseFontTT::measureText(const WideString &text, int maxWidth, int maxHeight, int &textWidth, int &textHeight) {
//TextLineList lines;
- // TODO: This function gets called a lot, so warnings like these drown out the usefull information
- static bool hasWarned = false;
- if (!hasWarned) {
- hasWarned = true;
- warning("Todo: Test Mesuretext");
- }
+
if (maxWidth >= 0) {
Common::Array<Common::String> lines;
_font->wordWrapText(text, maxWidth, lines);