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
]
- To: Allegro Development <alleg-developers@xxxxxxxxxx>
- Subject: Re: [AD] tests on OS X (was Re: SF.net SVN: alleg:[15387] allegro/branches/5.1/src/opengl)
- From: Evert Glebbeek <eglebbk@xxxxxxxxxx>
- Date: Sat, 25 Feb 2012 07:11:36 +0100
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