From a65552794924ce2c86ad017854c56b6a926573d0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 8 Jan 2004 01:43:32 +0000 Subject: fix maskpos (I think... needs testing) svn-id: r12229 --- scumm/nut_renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scumm/nut_renderer.cpp') 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; -- cgit v1.2.3