Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/imlib2

Dir     : e17/libs/imlib2/src/lib


Modified Files:
        ximage.c 


Log Message:


imlib2 cross-endianess fix from Geoffrey Giesemann 

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/imlib2/src/lib/ximage.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- ximage.c    1 Nov 2004 09:45:31 -0000       1.1
+++ ximage.c    12 Oct 2005 03:17:46 -0000      1.2
@@ -323,6 +323,15 @@
      }
    /* flush unused images from the image list */
    __imlib_FlushXImage(d);
+
+   /* set the byte order of the XImage to the byte_order of the Xclient */
+   /* (rather than the Xserver) */
+#ifdef WORDS_BIGENDIAN
+   xim->byte_order = MSBFirst;
+#else
+   xim->byte_order = LSBFirst;
+#endif
+
    /* return out image */
    return xim;
 }




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to