[comp.sys.amiga.tech] An Appeal to the Blitter Gods

ahinds@hvrunix.UUCP (Alexander Hinds) (03/09/89)

	A few weeks ago, I posted a message about blitting part of a
bitmap from a source to a destination, leaving out color 14 in the
destination bitmap.  Mr. Randall Jessup of Commodore posted some pseudo
code, to help.  However, I'm totally stuck.  I've tried many different
ways.  My walls are covered in blood.  I would be forever indebted to
anybody who could send me some CODE that would accomplish the following:

void	DoSprite(src,dest,x,y,width,height,destX,destY,color)

	struct BitMap	*src,	/*source bitmap*/
			*dest;	/*destination*/
	long		x,y;	/*starting x,y location*/
	long		destX,destY;	/*destination location*/
	long		width, height;	/*width and height of block*/
	int		color;		/*color to mask out*/
{......
.....
}

My routine seems to make the mask in the destination correctly, but it
never blits selectively to the destination.  ie.  All the colors always 
end up in the destination.  

Please, please, please, does somebody have code that works to do the
above, or something similar?

I'd be forever indebted.  Personal mail would be best, since our news
feed is sporatic at best.  Thanks in advance.

Alexander Hinds
ahinds@hvrford :USENET
A_HINDS@HVRFORD	:BITNET, much better address!!!!!