evas: set default values of strokeCap and strokeJoin to prevent inconsistency 41/263141/2
authorMichal Maciola <m.maciola@samsung.com>
Thu, 26 Aug 2021 12:18:14 +0000 (14:18 +0200)
committerHermet Park <chuneon.park@samsung.com>
Thu, 26 Aug 2021 12:45:51 +0000 (12:45 +0000)
Default values of strokeCap and strokeJoin differs in EFL and THORVG.
Set EFL default values to prevent inconsistency

Change-Id: Ib935f7470f9d64a63b9dfdd06b6d0dcc50de8f29

src/lib/evas/canvas/efl_canvas_vg_shape.c

index ea70846..470c1a5 100644 (file)
@@ -737,6 +737,11 @@ _efl_canvas_vg_shape_efl_object_constructor(Eo *obj, Efl_Canvas_Vg_Shape_Data *p
    //when object is visible, renderer changes opacity to valid value.
    tvg_paint_set_opacity(pd->shape, 0);
 
+   //default values of strokeCap and strokeJoin differs in EFL and THORVG
+   //set EFL default to prevent inconsistency
+   tvg_shape_set_stroke_cap(pd->shape, _efl_to_tvg_stroke_cap((Evas_Vg_Cap)0));
+   tvg_shape_set_stroke_join(pd->shape, _efl_to_tvg_stroke_join((Evas_Vg_Join)0));
+
    nd->data = pd;
    return obj;
 }