forked from old/legacy-imlib2
and one mroe fix for big endian boxes for imlib png loader
SVN revision: 330
This commit is contained in:
parent
89817dbbd5
commit
35467c71f4
|
@ -118,6 +118,14 @@ load (ImlibImage *im,
|
|||
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);
|
||||
/* we want ARGB */
|
||||
#ifdef __BIG_ENDIAN__
|
||||
png_set_swap_alpha(png_ptr);
|
||||
#else
|
||||
png_set_bgr(png_ptr);
|
||||
#endif
|
||||
/* 16bit color -> 8bit color */
|
||||
png_set_strip_16(png_ptr);
|
||||
|
|
Loading…
Reference in New Issue