[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.228,2.229
Travis Howell
kirben at users.sourceforge.net
Wed Oct 15 22:51:22 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv9538/scumm
Modified Files:
gfx.cpp
Log Message:
Add hack from Jamieson, to prevent palette darkening when it shouldn't in Amiga versions of Mi2/FOA.
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.228
retrieving revision 2.229
diff -u -d -r2.228 -r2.229
--- gfx.cpp 16 Oct 2003 00:39:29 -0000 2.228
+++ gfx.cpp 16 Oct 2003 05:49:09 -0000 2.229
@@ -3091,6 +3091,13 @@
cur = _currentPalette + startColor * 3;
for (j = startColor; j <= endColor; j++) {
+ // FIXME: Hack to fix Amiga palette adjustments
+ if ((_features & GF_AMIGA && _version == 5) && (j >= 16 && j < 81)) {
+ cptr += 3;
+ cur += 3;
+ continue;
+ }
+
color = *cptr++;
color = color * redScale / 0xFF;
if (color > 255)
More information about the Scummvm-git-logs
mailing list