aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2004-04-04 17:56:30 +0000
committerMax Horn2004-04-04 17:56:30 +0000
commitf1ee3c0163b65619a6dcad280ec24ad13c5731b8 (patch)
treebddb2a18e5f8802b3a8c32a666fbb9864f8973f1 /scumm
parent6d460d2e101fba2f7e7a651fdc2466c7e9a2fa04 (diff)
downloadscummvm-rg350-f1ee3c0163b65619a6dcad280ec24ad13c5731b8.tar.gz
scummvm-rg350-f1ee3c0163b65619a6dcad280ec24ad13c5731b8.tar.bz2
scummvm-rg350-f1ee3c0163b65619a6dcad280ec24ad13c5731b8.zip
let compiler optimize code better <g>
svn-id: r13458
Diffstat (limited to 'scumm')
-rw-r--r--scumm/bomp.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/scumm/bomp.cpp b/scumm/bomp.cpp
index 1626493105..016ce4abbe 100644
--- a/scumm/bomp.cpp
+++ b/scumm/bomp.cpp
@@ -195,7 +195,6 @@ void bompScaleFuncX(byte *line_buffer, byte *scaling_x_ptr, byte skip, int32 siz
void ScummEngine::drawBomp(const BompDrawData &bd, bool mirror) {
const byte *src;
byte *dst;
- byte maskbit;
byte *mask = 0;
byte *charset_mask;
Common::Rect clip;
@@ -230,7 +229,7 @@ void ScummEngine::drawBomp(const BompDrawData &bd, bool mirror) {
src = bd.dataptr;
dst = bd.out + bd.y * bd.outwidth + bd.x + clip.left;
- maskbit = revBitMask[(bd.x + clip.left) & 7];
+ const byte maskbit = revBitMask[(bd.x + clip.left) & 7];
// Always mask against the charset mask
charset_mask = getMaskBuffer(bd.x + clip.left, bd.y, 0);