[Scummvm-git-logs] scummvm master -> b697ad6cfafcb7371899e653f4bc5abcfb4f72cc

sev- noreply at scummvm.org
Mon Aug 22 15:39:56 UTC 2022


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:
b697ad6cfa GRAPHICS: MACGUI: Improved debug output


Commit: b697ad6cfafcb7371899e653f4bc5abcfb4f72cc
    https://github.com/scummvm/scummvm/commit/b697ad6cfafcb7371899e653f4bc5abcfb4f72cc
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-08-22T17:39:47+02:00

Commit Message:
GRAPHICS: MACGUI: Improved debug output

Changed paths:
    graphics/macgui/mactext.cpp


diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index baefd8fa363..b96c84c14ee 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -113,6 +113,8 @@ MacText::MacText(MacWidget *parent, int x, int y, int w, int h, MacWindowManager
 	MacWidget(parent, x, y, w, h, wm, true, border, gutter, boxShadow),
 	_macFont(macFont), _maxWidth(maxWidth), _textAlignment(textAlignment), _interLinear(interlinear) {
 
+	D(6, "MacText::MacText(): fgcolor: %d, bgcolor: %d s: \"%s\"", fgcolor, bgcolor, Common::toPrintable(s.encode()).c_str());
+
 	_str = s;
 	_fullRefresh = true;
 
@@ -231,9 +233,9 @@ void MacText::init() {
 	// currently, we are not using fg color to render text. And we are not passing fg color correctly, thus we read it our self.
 	MacFontRun colorFontRun = getFgColor();
 	if (!colorFontRun.text.empty()) {
-		debug(9, "Reading fg color though text, instead of the argument");
 		_fgcolor = colorFontRun.fgcolor;
 		colorFontRun.text.clear();
+		debug(9, "Reading fg color though text, instead of the argument, read %x", _fgcolor);
 		_defaultFormatting = colorFontRun;
 		_defaultFormatting.wm = _wm;
 	}




More information about the Scummvm-git-logs mailing list