aboutsummaryrefslogtreecommitdiff
path: root/sky/rnc_deco.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-11-08 20:27:27 +0000
committerPaweł Kołodziejski2003-11-08 20:27:27 +0000
commitb99af18bd5df9d7fadceb5d517fc57a2f7e7db42 (patch)
treeadbe4c2e07ddaed34d49afb567b0947fdc091c94 /sky/rnc_deco.cpp
parent409108df82789d462320da6b5280a3218d0c3ba7 (diff)
downloadscummvm-rg350-b99af18bd5df9d7fadceb5d517fc57a2f7e7db42.tar.gz
scummvm-rg350-b99af18bd5df9d7fadceb5d517fc57a2f7e7db42.tar.bz2
scummvm-rg350-b99af18bd5df9d7fadceb5d517fc57a2f7e7db42.zip
cleanup whitespaces
svn-id: r11213
Diffstat (limited to 'sky/rnc_deco.cpp')
-rw-r--r--sky/rnc_deco.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/sky/rnc_deco.cpp b/sky/rnc_deco.cpp
index 95a1ee7b33..10a2cb2a02 100644
--- a/sky/rnc_deco.cpp
+++ b/sky/rnc_deco.cpp
@@ -92,7 +92,7 @@ uint16 RncDecoder::inputBits(uint8 amount) {
if (newBitCount < 0) {
newBitCount += amount;
- remBits = (newBitBuffh << (16-newBitCount));
+ remBits = (newBitBuffh << (16 - newBitCount));
newBitBuffh >>= newBitCount;
newBitBuffl >>= newBitCount;
newBitBuffl |= remBits;
@@ -101,7 +101,7 @@ uint16 RncDecoder::inputBits(uint8 amount) {
amount -= newBitCount;
newBitCount = 16 - amount;
}
- remBits = (newBitBuffh << (16-amount));
+ remBits = (newBitBuffh << (16 - amount));
_bitBuffh = newBitBuffh >> amount;
_bitBuffl = (newBitBuffl >> amount) | remBits;
_bitCount = (uint8)newBitCount;
@@ -134,7 +134,7 @@ void RncDecoder::makeHufftable(uint16 *table) {
a |= ((b >> j) & 1) << (bitLength - j - 1);
*table++ = a;
- *(table + 0x1e) = (huffLength[i] << 8)|(i & 0x00FF);
+ *(table + 0x1e) = (huffLength[i] << 8) | (i & 0x00FF);
huffCode += 1 << (16 - bitLength);
}
}
@@ -253,7 +253,7 @@ int32 RncDecoder::unpackM1(const void *input, void *output, uint16 key) {
if (crcBlock((uint8 *)output, unpackLen) != crcUnpacked)
return UNPACKED_CRC;
-
+
// all is done..return the amount of unpacked bytes
return unpackLen;
}