diff options
author | Paweł Kołodziejski | 2002-10-25 06:57:46 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-10-25 06:57:46 +0000 |
commit | 9b535419d1612d4618b35465501308d79f744b29 (patch) | |
tree | a261e85227751861feffb65271babfce14e48fa1 | |
parent | 2cbfd74e2d63f0ef7261fc2a6d9d97440e72682f (diff) | |
download | scummvm-rg350-9b535419d1612d4618b35465501308d79f744b29.tar.gz scummvm-rg350-9b535419d1612d4618b35465501308d79f744b29.tar.bz2 scummvm-rg350-9b535419d1612d4618b35465501308d79f744b29.zip |
removed _bitMask table from akos16
svn-id: r5308
-rw-r--r-- | scumm/akos.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp index 3bfa501356..c5b8102bb1 100644 --- a/scumm/akos.cpp +++ b/scumm/akos.cpp @@ -985,12 +985,10 @@ void AkosRenderer::codec5() } } -static const byte _bitMask[] = {0, 1, 3, 7, 15, 31, 63, 127, 255}; - void AkosRenderer::akos16SetupBitReader(byte *src) { akos16.unk5 = 0; akos16.numbits = 16; - akos16.mask = _bitMask[*(src)]; + akos16.mask = (1 << *src) - 1; akos16.shift = *(src); akos16.color = *(src + 1); akos16.bits = (*(src + 2) | *(src + 3) << 8); |