evince r3069 - in trunk: . libdocument



Author: carlosgc
Date: Sun Jul 13 16:18:26 2008
New Revision: 3069
URL: http://svn.gnome.org/viewvc/evince?rev=3069&view=rev

Log:
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.


Modified:
   trunk/ChangeLog
   trunk/libdocument/ev-document-misc.c

Modified: trunk/libdocument/ev-document-misc.c
==============================================================================
--- trunk/libdocument/ev-document-misc.c	(original)
+++ trunk/libdocument/ev-document-misc.c	Sun Jul 13 16:18:26 2008
@@ -220,10 +220,10 @@
 			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;
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]