diff options
author | Paweł Kołodziejski | 2003-01-10 23:29:47 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2003-01-10 23:29:47 +0000 |
commit | 905d6b600865e882c399e8630bdd6a99c1824d15 (patch) | |
tree | 3b1ddd8e1289a3caaf88b7b3d06faa2942c4921d /scumm/smush | |
parent | 18731b0726e470e3eb1b1dc4e0f66903718c331c (diff) | |
download | scummvm-rg350-905d6b600865e882c399e8630bdd6a99c1824d15.tar.gz scummvm-rg350-905d6b600865e882c399e8630bdd6a99c1824d15.tar.bz2 scummvm-rg350-905d6b600865e882c399e8630bdd6a99c1824d15.zip |
endian fix
svn-id: r6395
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/codec47.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/smush/codec47.cpp b/scumm/smush/codec47.cpp index 97496e7a2d..23223b58e0 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 = *(ptr_table); + int16 tmp_word = READ_LE_UINT16(ptr_table); ptr_table += 2; tmp_word *= (int16)width; - tmp_word += *(ptr_table - 3); + tmp_word += READ_LE_UINT16(ptr_table - 3); tmp_ptr++; - *(tmp_ptr - 1) = tmp_word; + *(tmp_ptr - 1) = TO_LE_16(tmp_word); } while (tmp_ptr < &smush_table[255]); a = 0; c = 0; |