aboutsummaryrefslogtreecommitdiff
path: root/scumm/smush
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-01-08 20:46:25 +0000
committerPaweł Kołodziejski2003-01-08 20:46:25 +0000
commitcd206557000e6f04ada42b478ec90e9353005304 (patch)
tree7aa86de048d80c2b156725cf546fa4ed2137cd2c /scumm/smush
parent28433a8888abe4c299943ed95c57d9506b9e5eb5 (diff)
downloadscummvm-rg350-cd206557000e6f04ada42b478ec90e9353005304.tar.gz
scummvm-rg350-cd206557000e6f04ada42b478ec90e9353005304.tar.bz2
scummvm-rg350-cd206557000e6f04ada42b478ec90e9353005304.zip
codec47: fixes in opcode FD
svn-id: r6356
Diffstat (limited to 'scumm/smush')
-rw-r--r--scumm/smush/codec47.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp
index d452351563..ac81f6e6b6 100644
--- a/scumm/smush/codec47.cpp
+++ b/scumm/smush/codec47.cpp
@@ -772,9 +772,6 @@ static void codec47_subgfx_lev3() {
return;
}
if (code == 0xFD) {
- d_src += 4;
- return;
-
byte * tmp_ptr = (*(d_src + 1) << 7) + (byte*)codec47_decode2_buf2;
int32 l = *(tmp_ptr + 96);
byte val = *(d_src + 2);
@@ -873,8 +870,6 @@ static void codec47_subgfx_lev2() {
return;
}
if (code == 0xFD) {
- d_src += 4;
- return;
tmp = *(d_src + 1);
tmp2 = tmp * 4;
tmp <<= 7;
@@ -882,14 +877,14 @@ static void codec47_subgfx_lev2() {
byte * tmp_ptr = tmp + tmp3 + (byte*)codec47_decode2_buf1;
byte l = *(tmp_ptr + 384);
byte val = *(d_src + 2);
- int32 * tmp_ptr2 = (int32*)tmp_ptr;
+ int16 * tmp_ptr2 = (int16*)tmp_ptr;
do {
*(d_dst + *(tmp_ptr2)) = val;
tmp_ptr2++;
} while (--l > 0);
l = *(tmp_ptr + 385);
val = *(d_src + 3);
- tmp_ptr2 = (int32*)(tmp_ptr + 128);
+ tmp_ptr2 = (int16*)(tmp_ptr + 128);
do {
*(d_dst + *(tmp_ptr2)) = val;
tmp_ptr2++;