diff options
author | Paweł Kołodziejski | 2003-03-13 06:37:07 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-03-13 06:37:07 +0000 |
commit | edc5ea57f0d0522eb9e2cf4cfd700f1cf493e97a (patch) | |
tree | f1fb8ef1ad886e38605ebf22b75de0816c2270ed /scumm/smush | |
parent | 783f065af48b499cc2ca0710ed458f76a4437a29 (diff) | |
download | scummvm-rg350-edc5ea57f0d0522eb9e2cf4cfd700f1cf493e97a.tar.gz scummvm-rg350-edc5ea57f0d0522eb9e2cf4cfd700f1cf493e97a.tar.bz2 scummvm-rg350-edc5ea57f0d0522eb9e2cf4cfd700f1cf493e97a.zip |
clenaup
svn-id: r6813
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/codec47.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp index 62ed322139..30983412c3 100644 --- a/scumm/smush/codec47.cpp +++ b/scumm/smush/codec47.cpp @@ -453,26 +453,26 @@ void Codec47Decoder::level3(byte *d_dst) { if (code < 0xF8) { tmp = _table[code] + _offset1; - *(uint16 *)(d_dst + (_d_pitch * 0)) = *(uint16 *)(d_dst + (_d_pitch * 0) + tmp); - *(uint16 *)(d_dst + (_d_pitch * 1)) = *(uint16 *)(d_dst + (_d_pitch * 1) + tmp); + *(uint16 *)(d_dst) = *(uint16 *)(d_dst + tmp); + *(uint16 *)(d_dst + _d_pitch) = *(uint16 *)(d_dst + _d_pitch + tmp); } else if (code == 0xFF) { - *(uint16 *)(d_dst + (_d_pitch * 0)) = *(uint16 *)(_d_src + 0); - *(uint16 *)(d_dst + (_d_pitch * 1)) = *(uint16 *)(_d_src + 2); + *(uint16 *)(d_dst) = *(uint16 *)(_d_src + 0); + *(uint16 *)(d_dst + _d_pitch) = *(uint16 *)(_d_src + 2); _d_src += 4; } else if (code == 0xFE) { byte t = *_d_src++; tmp = t | t << 8; - *(uint16 *)(d_dst + (_d_pitch * 0)) = (uint16)tmp; - *(uint16 *)(d_dst + (_d_pitch * 1)) = (uint16)tmp; + *(uint16 *)(d_dst) = (uint16)tmp; + *(uint16 *)(d_dst + _d_pitch) = (uint16)tmp; } else if (code == 0xFC) { tmp = _offset2; - *(uint16 *)(d_dst + (_d_pitch * 0)) = *(uint16 *)(d_dst + (_d_pitch * 0) + tmp); - *(uint16 *)(d_dst + (_d_pitch * 1)) = *(uint16 *)(d_dst + (_d_pitch * 1) + tmp); + *(uint16 *)(d_dst) = *(uint16 *)(d_dst + tmp); + *(uint16 *)(d_dst + _d_pitch) = *(uint16 *)(d_dst + _d_pitch + tmp); } else { byte t = _paramPtr[code]; tmp = t | t << 8; - *(uint16 *)(d_dst + (_d_pitch * 0)) = (uint16)tmp; - *(uint16 *)(d_dst + (_d_pitch * 1)) = (uint16)tmp; + *(uint16 *)(d_dst) = (uint16)tmp; + *(uint16 *)(d_dst + _d_pitch) = (uint16)tmp; } } |