diff options
author | Max Horn | 2003-01-11 17:59:27 +0000 |
---|---|---|
committer | Max Horn | 2003-01-11 17:59:27 +0000 |
commit | 09445ada177bf5cbfd7a613a35905659888ee7bd (patch) | |
tree | 22a058d25a56a7b321cbd46070fc83aeac628957 /scumm/smush | |
parent | 237783a24dff7e9089826eeec9971280497eae28 (diff) | |
download | scummvm-rg350-09445ada177bf5cbfd7a613a35905659888ee7bd.tar.gz scummvm-rg350-09445ada177bf5cbfd7a613a35905659888ee7bd.tar.bz2 scummvm-rg350-09445ada177bf5cbfd7a613a35905659888ee7bd.zip |
that was a bgous endian fix, aquadran :-)
svn-id: r6399
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 e840b8c612..ae78048ebb 100644 --- a/scumm/smush/codec47.cpp +++ b/scumm/smush/codec47.cpp @@ -521,12 +521,12 @@ void Codec47Decoder::makeTables47(int32 width) { int16 * tmp_ptr = smush_table; int16 * ptr_table = &codec47_table[1]; do { - int16 tmp_word = READ_LE_UINT16(ptr_table); - ptr_table += 2; + int16 tmp_word = *ptr_table; tmp_word *= (int16)width; - tmp_word += READ_LE_UINT16(ptr_table - 3); + tmp_word += *(ptr_table - 1); + *tmp_ptr = tmp_word; + ptr_table += 2; tmp_ptr++; - *(tmp_ptr - 1) = TO_LE_16(tmp_word); } while (tmp_ptr < &smush_table[255]); a = 0; c = 0; |