aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 8bbda572ea..ca627ecc74 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -954,7 +954,6 @@ void CharsetRenderer::printChar(int chr)
_bpp = _unk2 = *ptr;
_invNumBits = 8 - _bpp;
- _bitMask = 0xFF << _invNumBits;
_colorMap[1] = _color;
_charOffs = READ_LE_UINT32(ptr + chr * 4 + 4);
@@ -1080,7 +1079,7 @@ void CharsetRenderer::drawBits()
maskpos = 0;
for (x = 0; x < _width; x++) {
- color = (bits & _bitMask) >> _invNumBits;
+ color = (bits >> _invNumBits) & 0xFF;
if (color) {
if (usemask) {
mask[maskpos] |= maskmask;