]> www.fi.muni.cz Git - evince.git/commitdiff
Fix bytes order on big endian. Patch by Benjamin Jacobs. Fixes bug
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 13 Jul 2008 16:18:26 +0000 (16:18 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sun, 13 Jul 2008 16:18:26 +0000 (16:18 +0000)
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

ChangeLog
libdocument/ev-document-misc.c

index 04adffd6fa042e559ae4ed9a88569f581b7ba230..56d3a40a5c8aab4cbed7993afaf85f3cadaafc95 100644 (file)
--- 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):
index 133a6c6acce732e756f1ceaae248a41e17bd716b..7898a8cd8324cf9915e0489ae2396ef2b140ab8d 100644 (file)
@@ -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;
                }