delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/27/14:34:21

From: "Tim Nicholson" <T DOT J DOT Nicholson AT btinternet DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: allegro, masked_blit() question
Date: Thu, 27 Sep 2001 19:17:40 +0100
Organization: Skyforce avionics Limited
Lines: 34
Message-ID: <9ovqkn$61l$1@uranium.btinternet.com>
References: <j952rt0oga8l5ak6n4krurcku12nc8oje2 AT 4ax DOT com>
NNTP-Posting-Host: host62-7-70-179.btinternet.com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

What colour depth have you set allegro to use?

If you are using truecolour mode then the mask colour is 'Bright Pink'
(maximum red and blue, zero green) and not black, I don't think the fact
that the source bitmap is only 8bit changes this.

Tim

"bullwinkle" <bullwinkle AT earthlink DOT net> wrote in message
news:j952rt0oga8l5ak6n4krurcku12nc8oje2 AT 4ax DOT com...
> I'm currently using Allegro in conjunction with DJGPP to program a
> game in the C language.  My computer OS is Win98 but the game i'm
> writing is for DOS.  anyway, i'm trying to implement a masked_blit()
> to display my bitmap object, compiled in the Allegro's Grabber
> program.  the point being to show the background graphics through the
> black, or color 0, sections of the given bitmap.  The graphic setting
> is at 800x600 resolution and the bitmap is currently saved as 256
> colors.  the problem is - when i draw the bitmap using
> "masked_blit(..)" i get the full bitmap drawing, including the black
> portions - basically i get the full rectangle drawing that i
> originally 'grabbed' in the Grabber program, including all the black
> portions.  The background graphics don't show through the black
> portions of the bitmap.  Any thoughts or suggestions as to how i can
> get the bitmap's black portions to show the background graphics using
> masked_blit(..) would be appreciated.  i've used it successfully in
> the past, but for some reason it's not working correctly on this
> particular bitmap.  anyway, any thoughts or suggestions would be
> appreciated.  also, if you need further information to help diagnose
> the problem please ask and i'll provide it.
>
> thanks much for any help anyone can provide.
>


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019