diff options
author | Max Horn | 2005-05-15 10:40:28 +0000 |
---|---|---|
committer | Max Horn | 2005-05-15 10:40:28 +0000 |
commit | fb11e793876b25e47fd4f35ed0f30d3febcc84b0 (patch) | |
tree | 5a6777fe1b50b11e3f0d0f5f94b116dfb9bc845f /scumm/bomp.cpp | |
parent | e5bbfe8df9e3fb291d840a3cbcdc947185bfd3fa (diff) | |
download | scummvm-rg350-fb11e793876b25e47fd4f35ed0f30d3febcc84b0.tar.gz scummvm-rg350-fb11e793876b25e47fd4f35ed0f30d3febcc84b0.tar.bz2 scummvm-rg350-fb11e793876b25e47fd4f35ed0f30d3febcc84b0.zip |
Replaced global revBitMask array with a macro
svn-id: r18104
Diffstat (limited to 'scumm/bomp.cpp')
-rw-r--r-- | scumm/bomp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |