From 45419f971a0d12ebec0e3f5b7c02312edfb6d75f Mon Sep 17 00:00:00 2001 From: Bendegúz Nagy Date: Wed, 22 Jun 2016 20:49:19 +0200 Subject: DM: Add color setting to TextMan::printTextToBitmap --- engines/dm/text.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/dm/text.cpp') diff --git a/engines/dm/text.cpp b/engines/dm/text.cpp index 116058de35..d6d005fed4 100644 --- a/engines/dm/text.cpp +++ b/engines/dm/text.cpp @@ -14,6 +14,12 @@ void TextMan::printTextToBitmap(byte* destBitmap, uint16 destPixelWidth, uint16 uint16 nextY = destY; byte *srcBitmap = _vm->_displayMan->getBitmap(kFontGraphicIndice); + byte *tmp = _vm->_displayMan->_tmpBitmap; + for (uint16 i = 0; i < (kLetterWidth + 1) * (kLetterHeight + 1) * 128; ++i) { + tmp[i] = srcBitmap[i] ? textColor : bgColor; + } + srcBitmap = tmp; + for (char *begin = text, *end = text + textLength; begin != end; ++begin) { // Note: this does no wraps in the middle of words -- cgit v1.2.3