Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/libdocument/ev-document-misc.c
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 /libdocument/ev-document-misc.c
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
Diffstat (limited to 'libdocument/ev-document-misc.c')
-rw-r--r--libdocument/ev-document-misc.c8
1 files changed, 4 insertions, 4 deletions
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;
}