[Scummvm-cvs-logs] CVS: scummvm/scumm/smush codec47.cpp,1.28,1.29

Pawel Kolodziejski aquadran at users.sourceforge.net
Fri Jan 10 15:30:04 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1:/tmp/cvs-serv21814

Modified Files:
	codec47.cpp 
Log Message:
endian fix

Index: codec47.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/codec47.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- codec47.cpp	10 Jan 2003 22:19:54 -0000	1.28
+++ codec47.cpp	10 Jan 2003 23:29:47 -0000	1.29
@@ -521,12 +521,12 @@
 	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;





More information about the Scummvm-git-logs mailing list