From cd206557000e6f04ada42b478ec90e9353005304 Mon Sep 17 00:00:00 2001 From: Paweł Kołodziejski Date: Wed, 8 Jan 2003 20:46:25 +0000 Subject: codec47: fixes in opcode FD svn-id: r6356 --- scumm/smush/codec47.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'scumm') 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++; -- cgit v1.2.3