[Scummvm-cvs-logs] CVS: scummvm/scumm/smush smush_font.cpp,1.16,1.17

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Thu Apr 15 08:57:21 CEST 2004


Update of /cvsroot/scummvm/scummvm/scumm/smush
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14854

Modified Files:
	smush_font.cpp 
Log Message:
Changed the type of value from char to int8. Otherwise, if char happens to
be unsigned, the test for if value == -31 will always fail.


Index: smush_font.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/smush/smush_font.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- smush_font.cpp	6 Jan 2004 12:45:31 -0000	1.16
+++ smush_font.cpp	15 Apr 2004 15:56:21 -0000	1.17
@@ -85,7 +85,7 @@
 		if (_new_colors) {
 			for (int j = 0; j < h; j++) {
 				for (int i = 0; i < w; i++) {
-					char value = *src++;
+					int8 value = *src++;
 					if (value == -color) {
 						dst[i] = 0xFF;
 					} else if (value == -31) {





More information about the Scummvm-git-logs mailing list