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.


SVN revision: 27325
This commit is contained in:
ningerso 2006-12-02 06:40:24 +00:00 committed by ningerso
parent 9f0f36e903
commit f71fcb3084
1 changed files with 8 additions and 9 deletions

View File

@ -1174,15 +1174,14 @@ ecore_x_cursor_new(Ecore_X_Window win, int *pixels, int w, int h, int hot_x, int
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);