Re: [AD] png on ppc mac

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


On Sat, 2009-07-18 at 09:21 -0600, Trent Gamblin wrote:
> On Fri, July 17, 2009 10:26 pm, Matthew Leverton said:
> > Loading a 24-bit or 32-bit PNG image in Allegro 4.9.12 on a PPC Mac
> > causes all images to have RGBA reversed.
> >
> > Attached is a patch that fixes it.
> 
> Can you try the attached patch? Seems simpler and this is
> what the original loadpng did.
> 

> +     png_set_bgr(png_ptr);
>       png_set_swap_alpha(png_ptr);

If the code works as intended, you should do this instead:

> -     png_set_swap_alpha(png_ptr);

-- 
Elias Pschernig <elias@xxxxxxxxxx>





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