Enlightenment CVS committal
Author : davemds
Project : e17
Module : proto/edje_editor
Dir : e17/proto/edje_editor/src/bin
Modified Files:
edje_editor_spectra.c edje_editor_spectra_widget.c
edje_editor_tree_model_spectra.c
Log Message:
* correctly handle stops alpha value
===================================================================
RCS file: /cvs/e/e17/proto/edje_editor/src/bin/edje_editor_spectra.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- edje_editor_spectra.c 15 Jul 2008 00:55:42 -0000 1.5
+++ edje_editor_spectra.c 15 Jul 2008 07:07:33 -0000 1.6
@@ -131,7 +131,8 @@
{
int r, g, b, a, d;
edje_edit_spectra_stop_color_get(edje_o, spectra, i, &r, &g, &b, &a, &d);
- evas_object_gradient_color_stop_add(gradient, r, g, b, a, d);
+ evas_object_gradient_color_stop_add(gradient, r, g, b, 255, d);
+ evas_object_gradient_alpha_stop_add(gradient, a, d);
}
evas_object_show(gradient);
===================================================================
RCS file: /cvs/e/e17/proto/edje_editor/src/bin/edje_editor_spectra_widget.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- edje_editor_spectra_widget.c 12 Jul 2008 14:45:03 -0000 1.4
+++ edje_editor_spectra_widget.c 15 Jul 2008 07:07:33 -0000 1.5
@@ -288,7 +288,8 @@
d = (int)(long)etk_object_data_get(ETK_OBJECT(image), "color_d");
arrow = etk_object_data_get(ETK_OBJECT(image), "arrow_o");
- evas_object_gradient_color_stop_add(gradient, r, g, b, a, d);
+ evas_object_gradient_color_stop_add(gradient, r, g, b, 255, d);
+ evas_object_gradient_alpha_stop_add(gradient, a, d);
dtot += d;
//Draw image
===================================================================
RCS file:
/cvs/e/e17/proto/edje_editor/src/bin/edje_editor_tree_model_spectra.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- edje_editor_tree_model_spectra.c 15 Jul 2008 00:55:43 -0000 1.1
+++ edje_editor_tree_model_spectra.c 15 Jul 2008 07:07:33 -0000 1.2
@@ -147,7 +147,8 @@
{
int r, g, b, a, d;
edje_edit_spectra_stop_color_get(edje_o, spectra_data->spectra, i,
&r, &g, &b, &a, &d);
- evas_object_gradient_color_stop_add(cell_objects[0], r, g, b, a, d);
+ evas_object_gradient_color_stop_add(cell_objects[0], r, g, b, 255, d);
+ evas_object_gradient_alpha_stop_add(cell_objects[0], a, d);
}
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs