diff options
author | Carlos 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) |
commit | 7119bcd8d46f21d20e55deeba2e0f9b7fa4737ef (patch) | |
tree | 20e41a3a996429b1d54035ae2080de4b9caf28b3 | |
parent | 331bedb9cefa5567b900fe46381e89aa057f9f72 (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-- | ChangeLog | 8 | ||||
-rw-r--r-- | libdocument/ev-document-misc.c | 8 |
2 files changed, 12 insertions, 4 deletions
@@ -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; } |