From: Enlightenment C. <no...@cv...> - 2006-08-08 01:01:41
|
Enlightenment CVS committal Author : rephorm Project : e17 Module : libs/evas Dir : e17/libs/evas/src/lib/engines/common Modified Files: evas_convert_color.c Log Message: i assume this was meant as an optimization. however, it wasn't correct for some cases (e.g. rgb = 187, 169, 123) =================================================================== RCS file: /cvs/e/e17/libs/evas/src/lib/engines/common/evas_convert_color.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- evas_convert_color.c 7 Jun 2006 23:30:14 -0000 1.2 +++ evas_convert_color.c 8 Aug 2006 06:01:37 -0000 1.3 @@ -69,7 +69,7 @@ d = max - min; if (v) *v = (max / 255.0); - if (!(max & d)) + if (!max) { if (s) *s = 0; if (h) *h = 0; |