summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/evas_vg_gradient_linear.c
diff options
context:
space:
mode:
authorsubhransu mohanty <sub.mohanty@samsung.com>2017-11-08 15:49:37 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-08 15:55:52 +0900
commit8952c3e52444d78504a822bf95d757621891dd41 (patch)
treef9bb53fea3fe98026a91b83540c9074784497e86 /src/lib/evas/canvas/evas_vg_gradient_linear.c
parent75a65ad41a02e2352a193b3b6cea2a99b7562591 (diff)
evas/vg: changed the efl_vg_dup api signature.
Reviewers: jpeg, cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5440
Diffstat (limited to 'src/lib/evas/canvas/evas_vg_gradient_linear.c')
-rw-r--r--src/lib/evas/canvas/evas_vg_gradient_linear.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/lib/evas/canvas/evas_vg_gradient_linear.c b/src/lib/evas/canvas/evas_vg_gradient_linear.c
index fcefa5583a..3549faf745 100644
--- a/src/lib/evas/canvas/evas_vg_gradient_linear.c
+++ b/src/lib/evas/canvas/evas_vg_gradient_linear.c
@@ -153,19 +153,15 @@ _efl_vg_gradient_linear_efl_vg_interpolate(Eo *obj,
153 return EINA_TRUE; 153 return EINA_TRUE;
154} 154}
155 155
156static void 156EOLIAN static Efl_VG *
157_efl_vg_gradient_linear_efl_vg_dup(Eo *obj, 157_efl_vg_gradient_linear_efl_vg_dup(const Eo *obj, Efl_VG_Gradient_Linear_Data *pd)
158 Efl_VG_Gradient_Linear_Data *pd EINA_UNUSED,
159 const Efl_VG *from)
160{ 158{
161 Efl_VG_Gradient_Linear_Data *fromd; 159 Efl_VG *cn = NULL;
162
163 efl_vg_dup(efl_super(obj, EFL_VG_GRADIENT_LINEAR_CLASS), from);
164
165 fromd = efl_data_scope_get(from, EFL_VG_GRADIENT_LINEAR_CLASS);
166 160
167 efl_gfx_gradient_linear_start_set(obj, fromd->start.x, fromd->start.y); 161 cn = efl_vg_dup(efl_super(obj, MY_CLASS));
168 efl_gfx_gradient_linear_end_set(obj, fromd->end.x, fromd->end.y); 162 efl_gfx_gradient_linear_start_set(cn, pd->start.x, pd->start.y);
163 efl_gfx_gradient_linear_end_set(cn, pd->end.x, pd->end.y);
164 return cn;
169} 165}
170 166
171EAPI void 167EAPI void