From: Michal Maciola Date: Thu, 26 Aug 2021 12:18:14 +0000 (+0200) Subject: evas: set default values of strokeCap and strokeJoin to prevent inconsistency X-Git-Tag: accepted/tizen/unified/20210901.103715~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F41%2F263141%2F2;p=platform%2Fupstream%2Fefl.git evas: set default values of strokeCap and strokeJoin to prevent inconsistency Default values of strokeCap and strokeJoin differs in EFL and THORVG. Set EFL default values to prevent inconsistency Change-Id: Ib935f7470f9d64a63b9dfdd06b6d0dcc50de8f29 --- diff --git a/src/lib/evas/canvas/efl_canvas_vg_shape.c b/src/lib/evas/canvas/efl_canvas_vg_shape.c index ea70846..470c1a5 100644 --- a/src/lib/evas/canvas/efl_canvas_vg_shape.c +++ b/src/lib/evas/canvas/efl_canvas_vg_shape.c @@ -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; }