diff options
author | Max Horn | 2003-06-19 17:50:18 +0000 |
---|---|---|
committer | Max Horn | 2003-06-19 17:50:18 +0000 |
commit | 2421128e8e3f399e96f9ce179604bbe09db043e6 (patch) | |
tree | f687edeae741ac4298664cf6bc017a1cc06f112c /scumm/bomp.cpp | |
parent | ada2d7c226752cc53cbc34f83cfc8bd81a288198 (diff) | |
download | scummvm-rg350-2421128e8e3f399e96f9ce179604bbe09db043e6.tar.gz scummvm-rg350-2421128e8e3f399e96f9ce179604bbe09db043e6.tar.bz2 scummvm-rg350-2421128e8e3f399e96f9ce179604bbe09db043e6.zip |
the _bompBitsTable really tells the number of 1 bits in a given byte
svn-id: r8563
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 a8360bfe22..d747829114 100644 --- a/scumm/bomp.cpp +++ b/scumm/bomp.cpp @@ -329,7 +329,7 @@ void Scumm::drawBomp(const BompDrawData &bd, bool mirror) { } } -static byte _bompBitsTable[] = { +static const byte bitCount[] = { 8, 7, 7, 6, 7, 6, 6, 5, 7, 6, 6, 5, 6, 5, 5, 4, 7, 6, 6, 5, 6, 5, 5, 4, 6, 5, 5, 4, 5, 4, 4, 3, 7, 6, 6, 5, 6, 5, 5, 4, 6, 5, 5, 4, 5, 4, 4, 3, @@ -382,7 +382,7 @@ int32 setupBompScale(byte *scaling, int32 size, byte scale) { count = (size + 7) >> 3; while (count--) { tmp = *scaling++; - ret_value += _bompBitsTable[tmp]; + ret_value += bitCount[tmp]; } return ret_value; |