diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2009-01-16 10:37:30 -0300 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2009-01-16 10:37:30 -0300 |
commit | aba09fd14b3f8a4a665d4f045e1b666803a90321 (patch) | |
tree | e3a8502ea6e7fdec50b9f80ab7716698ac0bc647 /dw/textblock.cc | |
parent | 8175675595e0fb05341b181dc00a59cd83659537 (diff) |
Added lout/msg.h and normalized debug messages to use it.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 2f5c66ae..2f242f86 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -21,6 +21,7 @@ #include "textblock.hh" +#include "../lout/msg.h" #include "../lout/misc.hh" #include <stdio.h> @@ -260,8 +261,8 @@ void Textblock::getExtremesImpl (core::Extremes *extremes) extremes->minWidth = wordExtremes.minWidth; } - //printf("parMax = %d, wordMaxWidth=%d, prevWordSpace=%d\n", - // parMax, wordExtremes.maxWidth, prevWordSpace); + _MSG("parMax = %d, wordMaxWidth=%d, prevWordSpace=%d\n", + parMax, wordExtremes.maxWidth, prevWordSpace); if (word->content.type != core::Content::BREAK) parMax += prevWordSpace; parMax += wordExtremes.maxWidth; @@ -1417,7 +1418,7 @@ void Textblock::drawLine (Line *line, core::View *view, core::Rectangle *area) break; default: - fprintf (stderr, "BUG!!! at (%d, %d).\n", xWorld, yWorldBase + diff); + MSG_ERR("at (%d, %d).\n", xWorld, yWorldBase + diff); break; } |