Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_x Modified Files: ecore_x_netwm.c Log Message: that was silliness - convert then memcpy anyway. =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_netwm.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -3 -r1.56 -r1.57 --- ecore_x_netwm.c 30 Sep 2006 10:18:31 -0000 1.56 +++ ecore_x_netwm.c 2 Oct 2006 10:37:13 -0000 1.57 @@ -713,16 +713,15 @@ pe = ps + len; for (ps; ps < pe; ps++) { - int r, g, b, a; + unsigned int r, g, b, a; a = (*ps >> 24) & 0xff; - r = (*ps >> 16) & 0xff; - g = (*ps >> 8) & 0xff; - b = (*ps ) & 0xff; - *pd = (a << 24) | (((r * a) / 255) << 16) | (((g * a) / 255) << 8) | (((b * a) / 255)); + r = (((*ps >> 16) & 0xff) * a) / 255; + g = (((*ps >> 8) & 0xff) * a) / 255; + b = (((*ps ) & 0xff) * a) / 255; + *pd = (a << 24) | (r << 16) | (g << 8) | (b); + pd++; } - memcpy(((*icon)[i]).data, src, len * sizeof(unsigned int)); - p += (len + 2); } ------------------------------------------------------------------------- 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