fblend fade with magic pink
Thread #563590. Printed from Allegro.cc
Is there a way to use fblend_fade_to_color while keeping the magic pink colour?
In standard allegro you can simply do something like this for a fade, e.g.
and the magic pink is preserved. However if you do
fblend_fade_to_color(bmp2, bmp1, 0,0, colour1, somevalue);
It does a complete fade, ignoring the magic pink. What you have to do (unless I'm completely wrong) is you have to do is check the original untouched bitmap for mask colour pixels and put them back into the faded bitmap (repeating/checking each bitmap depth):