[Scummvm-cvs-logs] CVS: scummvm/scumm akos.cpp,1.76,1.77

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Thu Jun 5 00:00:07 CEST 2003


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

Modified Files:
	akos.cpp 
Log Message:
Fix the ugly striped shadows in AKOS codec 1 when drawing scaled actors.
This was noticeable in Full Throttle and Curse of Monkey Island, at least.
I don't remember seeing it in The Dig.


Index: akos.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/akos.cpp,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -d -r1.76 -r1.77
--- akos.cpp	1 Jun 2003 14:30:24 -0000	1.76
+++ akos.cpp	5 Jun 2003 06:59:53 -0000	1.77
@@ -328,6 +328,7 @@
 	uint y, color, height, pcolor;
 	const byte *scaleytab;
 	bool masked;
+	bool skip_column = false;
 
 	y = v1.y;
 	src = _srcptr;
@@ -354,7 +355,7 @@
 			if (*scaleytab++ < _scaleY) {
 				masked = (y < _outheight) && v1.mask_ptr && ((mask[0] | mask[v1.imgbufoffs]) & maskbit);
 
-				if (color && y < _outheight && !masked) {
+				if (color && y < _outheight && !masked && !skip_column) {
 					pcolor = palette[color];
 					if (_shadow_mode == 1) {
 						if (pcolor == 13)
@@ -387,7 +388,9 @@
 						return;
 					maskbit = revBitMask[v1.x & 7];
 					v1.destptr += v1.scaleXstep;
-				}
+					skip_column = false;
+				} else
+					skip_column = true;
 				v1.scaleXindex += v1.scaleXstep;
 				dst = v1.destptr;
 				mask = v1.mask_ptr + (v1.x >> 3);





More information about the Scummvm-git-logs mailing list