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 )
how it should be written
if ( MAGIC_PINK_32 != ( pixel32 & 0xffffff ) )
masked_blit docs imply its all about the colour, not the bit pattern
that represents the colour.
On Wed, January 21, 2009 12:29 pm, AJ said:
> how masked_blit is likely written...
> if ( MAGIC_PINK_32 != pixel32 )
That is indeed how it is written. It uses bitmap_mask_color, which returns 0xff00ff with this test program:
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 320, 240, 0, 0);
So the question is, should the alpha bits be set in the mask color returned by bitmap_mask_color, or should they be
ignored in the comparison. I think both.