Re: [AD] tests on OS X (was Re: SF.net SVN: alleg:[15387] allegro/branches/5.1/src/opengl)

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


On 24 Feb 2012, at 23:34 , Peter Wang wrote:
> Ugh, try changing the lines in the OS X native image loader from:
> 
>    r *= 255 / a;
> 
> to
> 
>    r = r * a / 255;
> 
> like the other loaders have.

OS X loads images with pre-multiplied alpha, if I remember correctly. This used to be not the way Allegro stored bitmaps, and so the alpha channel was divided out.
If that's no longer needed, just leave the data as is.

Evert



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