Re: [AD] About Elias' bug

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


> > Move code from blit.c into some header file, add defines in some
> > places to test for transparency or don't test for transparency (change
> > putpixel or its equivalent?).  In blit.c arrange defines to blit the
> > whole bitmap and include header file, then set defines to test for
> > transparency and include header file again (function names should be
> > defined too), then write top-level functions (blit, masked_blit...).
>
> So basically we would duplicate the whole blitting code.

Maybe I missed something (or did not understand) here, but I don't think
blit()'s job is to preserve transparency
even between different color depths. Isn't it supposed do do staight
translation through the color mapping tables
for different color depths.
Isn't that the job of masked_blit() and draw_sprite() to care about
transparency. Are those broken ??

RyanG.



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