Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        ecore_x.c 


Log Message:
Revert a commit that should not have gone in. This was code to address what
appears to be an endianess bug in Apple's X server.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v
retrieving revision 1.122
retrieving revision 1.123
diff -u -3 -r1.122 -r1.123
--- ecore_x.c   2 Dec 2006 06:37:51 -0000       1.122
+++ ecore_x.c   2 Dec 2006 06:40:24 -0000       1.123
@@ -1174,15 +1174,14 @@
             xci->delay = 0;
             for (i = 0; i < (w * h); i++)
               {
-                 int r, g, b, a;
-                 
-                 a = ((pixels[i] >> 24) & 0xff);
-                 r = ((pixels[i] >> 16) & 0xff);
-                 g = ((pixels[i] >> 8 ) & 0xff);
-                 b = ((pixels[i]      ) & 0xff);
-//               xci->pixels[i] = pixels[i];
-//               xci->pixels[i] = (a << 24) | (r << 16) | (g << 8) | (b);
-                 xci->pixels[i] = (b << 24) | (g << 16) | (r << 8) | (a);
+//               int r, g, b, a;
+//               
+//               a = (pixels[i] >> 24) & 0xff;
+//               r = (((pixels[i] >> 16) & 0xff) * a) / 0xff;
+//               g = (((pixels[i] >> 8 ) & 0xff) * a) / 0xff;
+//               b = (((pixels[i]      ) & 0xff) * a) / 0xff;
+                 xci->pixels[i] = pixels[i];
+//                 (a << 24) | (r << 16) | (g << 8) | (b);
               }
             c = XcursorImageLoadCursor(_ecore_x_disp, xci);
             XcursorImageDestroy(xci);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to