[AD] masked_blit alpha channel problems.

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I'm having issues with using masked_blit, it was showing magic-pink pixels in the output.. which the docs say should not happen.

what causes it.. non-zero values in the alpha channel.
what fixes it, zero'ing the alpha channel.

how masked_blit is likely written...
if ( MAGIC_PINK_32 != pixel32 ) draw_it()

how it should be written
if ( MAGIC_PINK_32 != ( pixel32 & 0xffffff ) )
  draw_it();


masked_blit docs imply its all about the colour, not the bit pattern that represents the colour.

aj.








Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/