diff options
author | Max Horn | 2003-01-11 15:53:00 +0000 |
---|---|---|
committer | Max Horn | 2003-01-11 15:53:00 +0000 |
commit | 2636e2806acc5b8a6c96c44b786c9c3e9136741a (patch) | |
tree | 8a2393bb0ffafbe334618c0a0b63f9503dc17888 /scumm/smush | |
parent | 8b9e8cb8123222bdc7a94e18f891e892e658eb72 (diff) | |
download | scummvm-rg350-2636e2806acc5b8a6c96c44b786c9c3e9136741a.tar.gz scummvm-rg350-2636e2806acc5b8a6c96c44b786c9c3e9136741a.tar.bz2 scummvm-rg350-2636e2806acc5b8a6c96c44b786c9c3e9136741a.zip |
cleanup
svn-id: r6397
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/codec47.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp index 23223b58e0..e840b8c612 100644 --- a/scumm/smush/codec47.cpp +++ b/scumm/smush/codec47.cpp @@ -618,17 +618,15 @@ void Codec47Decoder::bompDecode(byte *dst, byte *src, int32 len) { do { code = *src++; + num = (code >> 1) + 1; if (code & 1) { - num = (code >> 1) + 1; color = *src++; memset(dst, color, num); - dst += num; } else { - num = (code >> 1) + 1; memcpy(dst, src, num); - dst += num; src += num; } + dst += num; } while (len -= num); } |