From 2421128e8e3f399e96f9ce179604bbe09db043e6 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 19 Jun 2003 17:50:18 +0000 Subject: the _bompBitsTable really tells the number of 1 bits in a given byte svn-id: r8563 --- scumm/bomp.cpp | 4 ++-- 1 file 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; -- cgit v1.2.3