Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2008-07-13 16:18:26 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2008-07-13 16:18:26 (GMT)
commit7119bcd8d46f21d20e55deeba2e0f9b7fa4737ef (patch)
tree20e41a3a996429b1d54035ae2080de4b9caf28b3
parent331bedb9cefa5567b900fe46381e89aa057f9f72 (diff)
Fix bytes order on big endian. Patch by Benjamin Jacobs. Fixes bug
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
-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;
}