Re: [AD] SF.net SVN: alleg:[12120] allegro/branches/4.9/addons/iio/png.c |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
On 24 Apr 2009, at 18:33 , elias@xxxxxxxxxx wrote:
Log Message: -----------Replaced al_map_rgba/al_put_pixel with direct memory access in png.c, faster and easier to read.
[snip]
- al_put_pixel(i, y, c); + *(rgba++) = pal[pix].r; + *(rgba++) = pal[pix].g; + *(rgba++) = pal[pix].b;
This doesn't look like it's endianesse safe (as described in the lock_bitmap example). Haven't tested it; I can test on my iBook later.
Evert
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |