Re: [AD] masked_blit alpha channel problems. |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Wed, January 21, 2009 12:29 pm, AJ said:
> how masked_blit is likely written...
> if ( MAGIC_PINK_32 != pixel32 )
> draw_it()
That is indeed how it is written. It uses bitmap_mask_color, which returns 0xff00ff with this test program:
#include <allegro.h>
int main(void)
{
allegro_init();
set_color_depth(32);
set_gfx_mode(GFX_AUTODETECT_WINDOWED, 320, 240, 0, 0);
printf("%x\n", bitmap_mask_color(screen));
return 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.
Trent :{)>