try make png laoder work on big endian... :)

SVN revision: 329
This commit is contained in:
Carsten Haitzler 1999-09-19 21:00:16 +00:00
parent 6591b09d2d
commit 89817dbbd5
1 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,9 @@ load (ImlibImage *im,
png_set_expand(png_ptr);
/* we want ARGB */
png_set_bgr(png_ptr);
#ifdef __BIG_ENDIAN__
png_set_swap_alpha(png_ptr);
#endif
/* 16bit color -> 8bit color */
png_set_strip_16(png_ptr);
/* pack all pixels to byte boundaires */