summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_gradient_linear.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:30:42 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-03 16:30:42 +0200
commit0f6328b04feca2e583a3d74b30d636af4f6b6965 (patch)
tree7827a750d77bd2421cf49cde89cd3c244120fbbc /src/lib/evas/canvas/evas_vg_gradient_linear.c
parent9fd2b74b081fc86364a8fe635fe3c89035e1e7e2 (diff)
efl: introduce EFL_GFX_CHANGED event and properly propagate up to Evas.
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_linear.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_linear.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c
index 71d5e0c712..c1d8ffc461 100644
--- a/src/lib/evas/canvas/evas_vg_gradient_linear.c
+++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c
@@ -22,6 +22,8 @@ _evas_vg_gradient_linear_efl_gfx_gradient_linear_start_set(Eo *obj EINA_UNUSED,
22{ 22{
23 pd->start.x = x; 23 pd->start.x = x;
24 pd->start.y = y; 24 pd->start.y = y;
25
26 _evas_vg_node_changed(obj);
25} 27}
26 28
27static void 29static void
@@ -40,6 +42,8 @@ _evas_vg_gradient_linear_efl_gfx_gradient_linear_end_set(Eo *obj EINA_UNUSED,
40{ 42{
41 pd->end.x = x; 43 pd->end.x = x;
42 pd->end.y = y; 44 pd->end.y = y;
45
46 _evas_vg_node_changed(obj);
43} 47}
44 48
45static void 49static void
@@ -59,7 +63,12 @@ _evas_vg_gradient_linear_render_pre(Eo *obj,
59 Evas_VG_Node_Data *nd) 63 Evas_VG_Node_Data *nd)
60{ 64{
61 Evas_VG_Gradient_Linear_Data *pd = data; 65 Evas_VG_Gradient_Linear_Data *pd = data;
62 Evas_VG_Gradient_Data *gd = eo_data_scope_get(obj, EVAS_VG_GRADIENT_CLASS); 66 Evas_VG_Gradient_Data *gd;
67
68 if (!nd->changed) return ;
69 nd->changed = EINA_FALSE;
70
71 gd = eo_data_scope_get(obj, EVAS_VG_GRADIENT_CLASS);
63 EVAS_VG_COMPUTE_MATRIX(current, parent, nd); 72 EVAS_VG_COMPUTE_MATRIX(current, parent, nd);
64 73
65 if (!nd->renderer) 74 if (!nd->renderer)