Mail Archives: djgpp/2001/09/27/14:34:21
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 -