aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2009-03-11 16:13:28 +0000
committerJohannes Schickel2009-03-11 16:13:28 +0000
commit35c4aec93f3445b37a4ef8f8a5c45949cd3fa9bd (patch)
treee353d607649e71e57aa96e94459bc3f456fd4c94 /engines
parent17664dce40ddc2c7a12579383760df5df8a49fcc (diff)
downloadscummvm-rg350-35c4aec93f3445b37a4ef8f8a5c45949cd3fa9bd.tar.gz
scummvm-rg350-35c4aec93f3445b37a4ef8f8a5c45949cd3fa9bd.tar.bz2
scummvm-rg350-35c4aec93f3445b37a4ef8f8a5c45949cd3fa9bd.zip
Formatting.
svn-id: r39330
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/scicore/decompressor.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/sci/scicore/decompressor.cpp b/engines/sci/scicore/decompressor.cpp
index 2214265e40..a68ba6a6f8 100644
--- a/engines/sci/scicore/decompressor.cpp
+++ b/engines/sci/scicore/decompressor.cpp
@@ -90,7 +90,7 @@ uint32 Decompressor::getBits(int n) {
}
byte Decompressor::getByte() {
- return getBits(8);
+ return getBits(8);
}
void Decompressor::putByte(byte b) {
@@ -267,15 +267,15 @@ void DecompressorComp3::decodeRLE(Common::ReadStream *src, Common::WriteStream *
dest->writeByte(nextbyte);
pos ++;
switch (nextbyte & 0xC0) {
- case 0x40 :
- case 0x00 :
+ case 0x40:
+ case 0x00:
dest->write(pixeldata, nextbyte);
pixeldata += nextbyte;
pos += nextbyte;
break;
- case 0xC0 :
+ case 0xC0:
break;
- case 0x80 :
+ case 0x80:
dest->writeByte(*pixeldata++);
break;
}
@@ -294,16 +294,16 @@ void DecompressorComp3::decode_rle(byte **rledata, byte **pixeldata, byte *outbu
*ob++ = nextbyte;
pos++;
switch (nextbyte & 0xC0) {
- case 0x40 :
- case 0x00 :
+ case 0x40:
+ case 0x00:
memcpy(ob, pd, nextbyte);
pd += nextbyte;
ob += nextbyte;
pos += nextbyte;
break;
- case 0xC0 :
+ case 0xC0:
break;
- case 0x80 :
+ case 0x80:
nextbyte = *pd++;
*ob++ = nextbyte;
pos++;
@@ -332,13 +332,13 @@ int DecompressorComp3::rle_size(byte *rledata, int dsize) {
size++;
switch (nextbyte & 0xC0) {
- case 0x40 :
- case 0x00 :
+ case 0x40:
+ case 0x00:
pos += nextbyte;
break;
- case 0xC0 :
+ case 0xC0:
break;
- case 0x80 :
+ case 0x80:
pos++;
break;
}