From fb11e793876b25e47fd4f35ed0f30d3febcc84b0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 15 May 2005 10:40:28 +0000 Subject: Replaced global revBitMask array with a macro svn-id: r18104 --- scumm/bomp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scumm/bomp.cpp') diff --git a/scumm/bomp.cpp b/scumm/bomp.cpp index 2843f9aa36..0a70d75da0 100644 --- a/scumm/bomp.cpp +++ b/scumm/bomp.cpp @@ -236,7 +236,7 @@ void ScummEngine::drawBomp(const BompDrawData &bd, bool mirror) { src = bd.dataptr; dst = (byte *)bd.dst.pixels + bd.y * bd.dst.pitch + (bd.x + clip.left); - const byte maskbit = revBitMask[(bd.x + clip.left) & 7]; + const byte maskbit = revBitMask((bd.x + clip.left) & 7); // Mask against any additionally imposed mask if (bd.maskPtr) { @@ -377,7 +377,7 @@ int32 setupBompScale(byte *scaling, int32 size, byte scale) { *tmp_scaling++ = a; } if ((size & 7) != 0) { - *(tmp_scaling - 1) |= revBitMask[size & 7]; + *(tmp_scaling - 1) |= revBitMask(size & 7); } count = (size + 7) / 8; -- cgit v1.2.3