[Scummvm-cvs-logs] CVS: scummvm/scumm akos.cpp,1.51,1.52

Jonathan Gray khalek at users.sourceforge.net
Mon May 19 02:03:02 CEST 2003


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

Modified Files:
	akos.cpp 
Log Message:
correct transparency colour for humongous games when using akos16

Index: akos.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/akos.cpp,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- akos.cpp	12 May 2003 17:50:09 -0000	1.51
+++ akos.cpp	19 May 2003 09:02:16 -0000	1.52
@@ -1230,6 +1230,7 @@
 	int32 maxw = outwidth - 1;
 	int32 maxh = outheight - 1;
 	int32 tmp_x, tmp_y;
+	byte transparency = (_vm->_features & GF_HUMONGOUS) ? 0 : 255;
 
 /*
 	tmp_x = clip_left;
@@ -1324,13 +1325,13 @@
 	byte *dest = outptr + width_unk + height_unk * _vm->_screenWidth;
 
 	if (_zbuf == 0) {
-		akos16Decompress(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, 255);
+		akos16Decompress(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, transparency);
 		return;
 	}
 
 	byte *ptr = _vm->_screenStartStrip + _vm->getResourceAddress(rtBuffer, 9) + _vm->gdi._imgBufOffs[_zbuf];
 	ptr += _numStrips * clip_top + (clip_left / 8);
-	akos16DecompressMask(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, 255, ptr, clip_left / 8);
+	akos16DecompressMask(dest, pitch, srcptr, cur_x, out_height, dir, numskip_before, numskip_after, transparency, ptr, clip_left / 8);
 }
 
 bool Scumm::akos_increaseAnims(byte *akos, Actor *a) {





More information about the Scummvm-git-logs mailing list