2008-07-13 Carlos Garcia Campos <carlosgc@gnome.org>
* libdocument/ev-document-misc.c:
(ev_document_misc_pixbuf_from_surface):
Fix bytes order on big endian. Patch by Benjamin Jacobs. Fixes bug
#540950.
svn path=/trunk/; revision=3069
+2008-07-13 Carlos Garcia Campos <carlosgc@gnome.org>
+
+ * libdocument/ev-document-misc.c:
+ (ev_document_misc_pixbuf_from_surface):
+
+ Fix bytes order on big endian. Patch by Benjamin Jacobs. Fixes bug
+ #540950.
+
2008-07-11 Nickolay V. Shmyrev <nshmyrev@yandex.ru>
* backend/comics/comics-document.c (comics_document_load):
p[3] = (has_alpha) ? p[3] : 0xff;
#else
tmp = p[0];
- p[0] = (has_alpha) ? p[3] : 0xff;
- p[3] = p[2];
- p[2] = p[1];
- p[1] = tmp;
+ p[0] = p[1];
+ p[1] = p[2];
+ p[2] = p[3];
+ p[3] = (has_alpha) ? tmp : 0xff;
#endif
p += pixbuf_n_channels;
}