Re: [AD] palette change for load_bitmap

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


> Yes, that was the purpose. My reasoning was, the optimized_palette is
> "useless", as it is never returned - and therefore I couldn't see why
> anyone would use load_bitmap in this way.

Ok, I misinterpreted the "useless": I thought the palette was never ever used, 
including internally.

> No idea how I came up with that 'else' line :) Replacing it with:
>
>   if (!nopal && bpp != 8 && dest_depth != 8)
>
> should make it behave right.

Yep. I commited the attached patch.

-- 
Eric Botcazou

Attachment: nopal2b.zip
Description: Zip archive



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