aboutsummaryrefslogtreecommitdiff
path: root/scumm/nut_renderer.cpp
diff options
context:
space:
mode:
authorMax Horn2004-01-08 01:43:32 +0000
committerMax Horn2004-01-08 01:43:32 +0000
commita65552794924ce2c86ad017854c56b6a926573d0 (patch)
treed17568e79146f9de17039ae94f3bcf746ec3b9f7 /scumm/nut_renderer.cpp
parent467861917d11bc200412655a0676095c527cc188 (diff)
downloadscummvm-rg350-a65552794924ce2c86ad017854c56b6a926573d0.tar.gz
scummvm-rg350-a65552794924ce2c86ad017854c56b6a926573d0.tar.bz2
scummvm-rg350-a65552794924ce2c86ad017854c56b6a926573d0.zip
fix maskpos (I think... needs testing)
svn-id: r12229
Diffstat (limited to 'scumm/nut_renderer.cpp')
-rw-r--r--scumm/nut_renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/nut_renderer.cpp b/scumm/nut_renderer.cpp
index 77fccda614..3877b764f6 100644
--- a/scumm/nut_renderer.cpp
+++ b/scumm/nut_renderer.cpp
@@ -327,7 +327,7 @@ void NutRenderer::drawChar(byte *dst, byte *mask, byte c, int x, int y, byte col
for (int ty = minY; ty < height; ty++) {
maskmask = revBitMask[(x + minX) & 7];
- maskpos = minX;
+ maskpos = (x%8 + minX) / 8;
for (int tx = minX; tx < width; tx++) {
if (src[tx] != 0) {
dst[tx] = color;