elementary/elm_colorselector : The arrow for the forth colorbar was
authorwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 14 Oct 2011 00:27:29 +0000 (00:27 +0000)
committerwoohyun <woohyun@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 14 Oct 2011 00:27:29 +0000 (00:27 +0000)
not colored well. So fixed it :)

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@64053 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_colorselector.c

index 71e716c..182bcfa 100644 (file)
@@ -419,7 +419,11 @@ _draw_rects(void *data, double x)
          break;
       case ALPHA:
          wd->a = 255.0 * x;
-         evas_object_color_set(wd->cp[3]->arrow, wd->er, wd->eg, wd->eb, wd->a);
+         evas_object_color_set(wd->cp[3]->arrow,
+                               (wd->er * wd->a) / 255,
+                               (wd->eg * wd->a) / 255,
+                               (wd->eb * wd->a) / 255,
+                               wd->a);
          break;
       default:
          break;