From f71fcb3084111cc9491fcf1003d481e708955126 Mon Sep 17 00:00:00 2001 From: ningerso Date: Sat, 2 Dec 2006 06:40:24 +0000 Subject: [PATCH] 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 --- legacy/ecore/src/lib/ecore_x/ecore_x.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_x/ecore_x.c b/legacy/ecore/src/lib/ecore_x/ecore_x.c index 07ef3fd1f8..465335e9c2 100644 --- a/legacy/ecore/src/lib/ecore_x/ecore_x.c +++ b/legacy/ecore/src/lib/ecore_x/ecore_x.c @@ -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);