forked from AuroraMiddleware/gtk
use G_BIG_ENDIAN instead of WORDS_BIGENDIAN which isn't set by
2002-12-04 Bastien Nocera <hadess@hadess.net> * io-tiff.c: (tiff_image_parse): use G_BIG_ENDIAN instead of WORDS_BIGENDIAN which isn't set by configure.in
This commit is contained in:
parent
6d5f8224a5
commit
55f1544e0a
@ -1,3 +1,8 @@
|
||||
2002-12-04 Bastien Nocera <hadess@hadess.net>
|
||||
|
||||
* io-tiff.c: (tiff_image_parse): use G_BIG_ENDIAN instead of
|
||||
WORDS_BIGENDIAN which isn't set by configure.in
|
||||
|
||||
2002-11-29 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gdk-pixbuf-animation.c:
|
||||
|
@ -280,7 +280,7 @@ tiff_image_parse (TIFF *tiff, TiffContext *context, GError **error)
|
||||
TIFFRGBAImageGet (&img, (uint32 *)pixels, width, height);
|
||||
TIFFRGBAImageEnd (&img);
|
||||
|
||||
#ifdef WORDS_BIGENDIAN
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
/* Turns out that the packing used by TIFFRGBAImage depends on the host byte order... */
|
||||
while (pixels < pixbuf->pixels + bytes) {
|
||||
uint32 pixel = *(uint32 *)pixels;
|
||||
|
Loading…
Reference in New Issue
Block a user