[Scummvm-cvs-logs] CVS: scummvm/scumm/smush codec47.cpp,1.30,1.31
Max Horn
fingolfin at users.sourceforge.net
Sat Jan 11 10:00:02 CET 2003
Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1:/tmp/cvs-serv31108
Modified Files:
codec47.cpp
Log Message:
that was a bgous endian fix, aquadran :-)
Index: codec47.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/codec47.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- codec47.cpp 11 Jan 2003 15:53:00 -0000 1.30
+++ codec47.cpp 11 Jan 2003 17:59:27 -0000 1.31
@@ -521,12 +521,12 @@
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;
More information about the Scummvm-git-logs
mailing list