aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/dm/text.cpp6
1 files changed, 6 insertions, 0 deletions
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