[Scummvm-cvs-logs] CVS: scummvm/saga gfx.cpp,1.63,1.64

Eugene Sandulenko sev at users.sourceforge.net
Tue Oct 4 19:01:07 CEST 2005


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28115

Modified Files:
	gfx.cpp 
Log Message:
Fix to fixed palette range.


Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/gfx.cpp,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- gfx.cpp	5 Oct 2005 01:40:55 -0000	1.63
+++ gfx.cpp	5 Oct 2005 02:00:17 -0000	1.64
@@ -203,8 +203,8 @@
 		from = 0;
 		numcolors = PAL_ENTRIES;
 	} else {
-		from = 0;
-		numcolors = 248;
+		from = 1;
+		numcolors = 247;
 	}
 
 	for (i = 0, ppal = &_currentPal[from * 4]; i < numcolors; i++, ppal += 4) {
@@ -273,8 +273,8 @@
 		from = 0;
 		numcolors = PAL_ENTRIES;
 	} else {
-		from = 0;
-		numcolors = 248;
+		from = 1;
+		numcolors = 247;
 	}
 
 	if (percent > 1.0) {
@@ -338,8 +338,8 @@
 		from = 0;
 		numcolors = PAL_ENTRIES;
 	} else {
-		from = 0;
-		numcolors = 248;
+		from = 1;
+		numcolors = 247;
 	}
 
 	if (percent > 1.0) {





More information about the Scummvm-git-logs mailing list