diff options
author | Paweł Kołodziejski | 2003-01-10 16:15:20 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-01-10 16:15:20 +0000 |
commit | 20958549450d1438a96ae5036bcb885f8cbee8b2 (patch) | |
tree | be3aa8154c9d1029093d31ebec886382090497dd /scumm/smush | |
parent | d5425f3dc11b8f4d26b9f411a4a7179159faa218 (diff) | |
download | scummvm-rg350-20958549450d1438a96ae5036bcb885f8cbee8b2.tar.gz scummvm-rg350-20958549450d1438a96ae5036bcb885f8cbee8b2.tar.bz2 scummvm-rg350-20958549450d1438a96ae5036bcb885f8cbee8b2.zip |
added endian safe read int16 value
svn-id: r6386
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/codec47.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp index 3611f3c03b..bb2c564ab6 100644 --- a/scumm/smush/codec47.cpp +++ b/scumm/smush/codec47.cpp @@ -789,14 +789,14 @@ static void codec47_subgfx_lev3() { byte val = *(d_src + 2); int16 * tmp_ptr2 = (int16*)tmp_ptr; do { - *(d_dst + *(tmp_ptr2)) = val; + *(d_dst + READ_LE_UINT16(tmp_ptr2)) = val; tmp_ptr2++; } while (--l > 0); l = *(tmp_ptr + 97); val = *(d_src + 3); tmp_ptr2 = (int16*)(tmp_ptr + 32); do { - *(d_dst + *(tmp_ptr2)) = val; + *(d_dst + READ_LE_UINT16(tmp_ptr2)) = val; tmp_ptr2++; } while (--l > 0); d_src += 4; @@ -891,14 +891,14 @@ static void codec47_subgfx_lev2() { byte val = *(d_src + 2); int16 * tmp_ptr2 = (int16*)tmp_ptr; do { - *(d_dst + *(tmp_ptr2)) = val; + *(d_dst + READ_LE_UINT16(tmp_ptr2)) = val; tmp_ptr2++; } while (--l > 0); l = *(tmp_ptr + 385); val = *(d_src + 3); tmp_ptr2 = (int16*)(tmp_ptr + 128); do { - *(d_dst + *(tmp_ptr2)) = val; + *(d_dst + READ_LE_UINT16(tmp_ptr2)) = val; tmp_ptr2++; } while (--l > 0); d_src += 4; |