[Scummvm-git-logs] scummvm master -> 46e5e44da28fbea1ad71037be0f52520f43c3d73
sev-
noreply at scummvm.org
Fri Oct 27 00:30:41 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
46e5e44da2 GRAPHICS: MACGUI: Hide MacTextCanvas debug output under compile-time macros
Commit: 46e5e44da28fbea1ad71037be0f52520f43c3d73
https://github.com/scummvm/scummvm/commit/46e5e44da28fbea1ad71037be0f52520f43c3d73
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-10-27T02:30:28+02:00
Commit Message:
GRAPHICS: MACGUI: Hide MacTextCanvas debug output under compile-time macros
Changed paths:
graphics/macgui/mactext-canvas.cpp
diff --git a/graphics/macgui/mactext-canvas.cpp b/graphics/macgui/mactext-canvas.cpp
index f75b008bfa1..41e5dff8290 100644
--- a/graphics/macgui/mactext-canvas.cpp
+++ b/graphics/macgui/mactext-canvas.cpp
@@ -935,11 +935,11 @@ void MacTextCanvas::reshuffleParagraph(int *row, int *col, MacFontRun &defaultFo
}
#if DEBUG
- debugN(9, "Chunks: ");
+ D(9, "Chunks: ");
for (auto &ch : chunks)
ch.debugPrint();
- debug(9, "");
+ D(9, "");
#endif
int curLine = start;
@@ -1144,24 +1144,24 @@ void MacTextCanvas::processTable(int line, int maxWidth) {
}
void MacFontRun::debugPrint() {
- debugN("{%d}[%d (%d)] \"%s\" ", text.size(), fontId, textSlant, Common::toPrintable(text.encode()).c_str());
+ D(8, "{%d}[%d (%d)] \"%s\" ", text.size(), fontId, textSlant, Common::toPrintable(text.encode()).c_str());
}
void MacTextCanvas::debugPrint(const char *prefix) {
for (uint i = 0; i < _text.size(); i++) {
if (prefix)
- debugN(8, "%s: ", prefix);
- debugN(8, "%2d, %c fi: %d, i: %d ", i, _text[i].paragraphEnd ? '$' : '.', _text[i].firstLineIndent, _text[i].indent);
+ D(8, "%s: ", prefix);
+ D(8, "%2d, %c fi: %d, i: %d ", i, _text[i].paragraphEnd ? '$' : '.', _text[i].firstLineIndent, _text[i].indent);
for (uint j = 0; j < _text[i].chunks.size(); j++)
_text[i].chunks[j].debugPrint();
- debugN("\n");
+ D(8, "\n");
}
if (prefix)
- debugN(8, "%s: ", prefix);
- debug(8, "[done]");
+ D(8, "%s: ", prefix);
+ D(8, "[done]");
}
} // End of namespace Graphics
More information about the Scummvm-git-logs
mailing list