From 2636e2806acc5b8a6c96c44b786c9c3e9136741a Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 11 Jan 2003 15:53:00 +0000 Subject: cleanup svn-id: r6397 --- scumm/smush/codec47.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scumm/smush') 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); } -- cgit v1.2.3