[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.109,2.110

Max Horn fingolfin at users.sourceforge.net
Sun May 18 12:52:18 CEST 2003


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

Modified Files:
	gfx.cpp 
Log Message:
Part of patch #739119 (attempt to fix bug #651077 at least partially)

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.109
retrieving revision 2.110
diff -u -d -r2.109 -r2.110
--- gfx.cpp	16 May 2003 23:54:58 -0000	2.109
+++ gfx.cpp	18 May 2003 19:51:50 -0000	2.110
@@ -3104,9 +3104,9 @@
 		int g = (int) (*curPtr++ * greenScale) >> 8;
 		int b = (int) (*curPtr++ * blueScale) >> 8;
 
-		searchPtr = palPtr;
+		searchPtr = palPtr + from * 3;
 		bestResult = 32000;
-		currentIndex = 0;
+		currentIndex = from;
 
 		for (j = from; j < to; j++) {
 			int ar = (*searchPtr++);





More information about the Scummvm-git-logs mailing list