Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--libdocument/ev-document-misc.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 04adffd..56d3a40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+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):
diff --git a/libdocument/ev-document-misc.c b/libdocument/ev-document-misc.c
index 133a6c6..7898a8c 100644
--- a/libdocument/ev-document-misc.c
+++ b/libdocument/ev-document-misc.c
@@ -220,10 +220,10 @@ ev_document_misc_pixbuf_from_surface (cairo_surface_t *surface)
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;
}