From: cs19 AT cityscape DOT co DOT uk (???) Newsgroups: comp.os.msdos.djgpp Subject: Re: HELP with Allegro (draw_sprite function) Date: Mon, 02 Dec 1996 12:00:01 GMT Organization: IP-GOLD User Lines: 17 Message-ID: <849528001.792.0@ciscs19.demon.co.uk> References: <57sbo1$fas AT athena DOT cytanet DOT com DOT cy> NNTP-Posting-Host: ciscs19.demon.co.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article <57sbo1$fas AT athena DOT cytanet DOT com DOT cy>, Marios Patsias says: > >I use the Allegro draw_sprite() function for displaying bitmaps, but >the bitmap isn't masked as it should be (according to the documentation), >and the blank pixel of it owerwrite the background. >Is there anything that I should know before using this function. >Note: The bitmap is a memory bitmap defined in a grabber .DAT file. > > >Marios Patsias >m DOT patsias AT cytanet DOT com DOT cy >CYPRUS > > the Allegro draw_sprite function masks colour 0, so you need to ensure that all the bits of the sprite that you don't want displayed on screen (i.e. the background) is set to colour index 0.