[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.420,2.421
Eugene Sandulenko
sev at users.sourceforge.net
Fri Mar 25 14:26:41 CET 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7881
Modified Files:
gfx.cpp
Log Message:
Accidentally commented out NES palette changing code. Fixing that.
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.420
retrieving revision 2.421
diff -u -d -r2.420 -r2.421
--- gfx.cpp 25 Mar 2005 22:11:07 -0000 2.420
+++ gfx.cpp 25 Mar 2005 22:25:40 -0000 2.421
@@ -1876,10 +1876,10 @@
byte *palette = getResourceAddress(rtCostume, v1MMNEScostTables[n][5]) + 2;
for (i = 0; i < 16; i++) {
byte c = *palette++;
- //if (c == 0x1D) // HACK - switch around colors 0x00 and 0x1D
- // c = 0; // so we don't need a zillion extra checks
- //else if (c == 0)// for determining the proper background color
- // c = 0x1D;
+ if (c == 0x1D) // HACK - switch around colors 0x00 and 0x1D
+ c = 0; // so we don't need a zillion extra checks
+ else if (c == 0)// for determining the proper background color
+ c = 0x1D;
_NESPalette[1][i] = c;
}
More information about the Scummvm-git-logs
mailing list