{
#ifdef HAVE_THORVG
Efl_Canvas_Vg_Gradient_Data *gd = NULL;
- float x1 = 0.0, x2 = 0.0, y1 = 0.0, y2 = 0.0;
+ float x1 = 0.0, y1 = 0.0;
if (!obj) return;
gd = efl_data_scope_get(obj, EFL_CANVAS_VG_GRADIENT_CLASS);
if (!gd || !gd->gradient) return;
- tvg_linear_gradient_get(gd->gradient, &x1, &y1, &x2, &y2);
+ tvg_linear_gradient_get(gd->gradient, &x1, &y1, NULL, NULL);
if (x) *x = x1;
if (y) *y = y1;
{
#ifdef HAVE_THORVG
Efl_Canvas_Vg_Gradient_Data *gd = NULL;
- float x1 = 0.0, x2 = 0.0, y1 = 0.0, y2 = 0.0;
+ float x2 = 0.0, y2 = 0.0;
if (!obj) return;
gd = efl_data_scope_get(obj, EFL_CANVAS_VG_GRADIENT_CLASS);
if (!gd || !gd->gradient) return;
- tvg_linear_gradient_get(gd->gradient, &x1, &y1, &x2, &y2);
- if (x) *x = x1;
- if (y) *y = y1;
+ tvg_linear_gradient_get(gd->gradient, NULL, NULL, &x2, &y2);
+ if (x) *x = x2;
+ if (y) *y = y2;
#else
efl_gfx_gradient_linear_end_get(obj, x, y);
#endif