int r = 0, g = 0, b = 0, a = 0;
- double scale_x = 1.0;
- double scale_y = 1.0;
-
if (!nd || !nd->data) return;
nd->flags = EFL_GFX_CHANGE_FLAG_NONE;
sd = nd->data;
}
#endif
+static void
+_efl_canvas_vg_shape_efl_gfx_path_bounds_get(const Eo *obj EINA_UNUSED,
+ Efl_Canvas_Vg_Shape_Data *sd,
+ Eina_Rect *r)
+{
+#ifndef HAVE_THORVG
+ efl_gfx_path_bounds_get(efl_super(obj, MY_CLASS), r);
+#else
+ float px, py, pw, ph;
+ tvg_paint_get_bounds(sd->shape, &px, &py, &pw, &ph);
+ r->x = (int)px;
+ r->y = (int)py;
+ r->w = (int)pw;
+ r->h = (int)ph;
+#endif
+}
+
static Eo *
_efl_canvas_vg_shape_efl_object_constructor(Eo *obj, Efl_Canvas_Vg_Shape_Data *pd)
{