[Scummvm-cvs-logs] CVS: scummvm/scumm costume.cpp,1.189,1.190
Torbjörn Andersson
eriktorbjorn at users.sourceforge.net
Thu Sep 15 03:26:11 CEST 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23848
Modified Files:
costume.cpp
Log Message:
I think this fixes bug #1291074, which is a masking glitch in Amiga v5
games. The mask pointer and maskbit weren't properly updated for the first
pixel of each new row.
Note that I do not have any of the Amiga games myself, so this fix is
based on observing what happens when forcing the PC version of MI2 to use
proc3_ami() instead of proc3().
Index: costume.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/costume.cpp,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -d -r1.189 -r1.190
--- costume.cpp 3 Sep 2005 16:31:37 -0000 1.189
+++ costume.cpp 15 Sep 2005 10:25:23 -0000 1.190
@@ -557,7 +557,8 @@
if (v1.x != oldXpos) {
dst += _out.pitch - (v1.x - oldXpos);
v1.mask_ptr += _numStrips;
- mask = v1.mask_ptr;
+ mask = v1.mask_ptr + oldXpos / 8;
+ maskbit = revBitMask(oldXpos & 7);
y++;
}
width = _width;
More information about the Scummvm-git-logs
mailing list