aboutsummaryrefslogtreecommitdiff
path: root/scumm/bomp.cpp
diff options
context:
space:
mode:
authorMax Horn2005-05-15 10:40:28 +0000
committerMax Horn2005-05-15 10:40:28 +0000
commitfb11e793876b25e47fd4f35ed0f30d3febcc84b0 (patch)
tree5a6777fe1b50b11e3f0d0f5f94b116dfb9bc845f /scumm/bomp.cpp
parente5bbfe8df9e3fb291d840a3cbcdc947185bfd3fa (diff)
downloadscummvm-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.cpp4
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;