summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorSubhransu Mohanty <sub.mohanty@samsung.com>2016-11-08 12:51:11 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-10-27 14:58:38 +0900
commit8329c98d5f5c3b3b8c974f39a461ef22f069c174 (patch)
tree5d37b94c9e66663c5bc0db6e59ce6030c6f04fcb /src/static_libs
parent4c47200c49ef4e178c4785e8b0b73db93c1ddbe7 (diff)
evas/vg: fixed handling of stroke width in cairo and native backend
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/static_libs/vg_common/vg_common.c b/src/static_libs/vg_common/vg_common.c
index 673ab0a..4204c73 100644
--- a/src/static_libs/vg_common/vg_common.c
+++ b/src/static_libs/vg_common/vg_common.c
@@ -636,10 +636,7 @@ _apply_vg_property(Svg_Node *node, Efl_VG *vg)
636 style->fill.paint.b, style->fill.opacity); 636 style->fill.paint.b, style->fill.opacity);
637 } 637 }
638 638
639 // apply the stroke style property 639 evas_vg_shape_stroke_width_set(vg, style->stroke.width);
640 //@TODO HACK, fix the below api to take the stroke width as pixels
641 // rightnow it draws double the pixel (inside and outside the outline)
642 evas_vg_shape_stroke_width_set(vg, style->stroke.width/2.0);
643 evas_vg_shape_stroke_cap_set(vg, style->stroke.cap); 640 evas_vg_shape_stroke_cap_set(vg, style->stroke.cap);
644 evas_vg_shape_stroke_join_set(vg, style->stroke.join); 641 evas_vg_shape_stroke_join_set(vg, style->stroke.join);
645 evas_vg_shape_stroke_scale_set(vg, style->stroke.scale); 642 evas_vg_shape_stroke_scale_set(vg, style->stroke.scale);
@@ -901,8 +898,7 @@ _apply_svg_property(Svg_Node *node, Efl_VG *vg)
901 &style->stroke.paint.b, &style->stroke.opacity); 898 &style->stroke.paint.b, &style->stroke.opacity);
902 } 899 }
903 900
904 // keep the stroke width same as svg spec. 901 style->stroke.width = (evas_vg_shape_stroke_width_get(vg));
905 style->stroke.width = (evas_vg_shape_stroke_width_get(vg) * 2.0);
906 style->stroke.cap = evas_vg_shape_stroke_cap_get(vg); 902 style->stroke.cap = evas_vg_shape_stroke_cap_get(vg);
907 style->stroke.join = evas_vg_shape_stroke_join_get(vg); 903 style->stroke.join = evas_vg_shape_stroke_join_get(vg);
908 style->stroke.scale = evas_vg_shape_stroke_scale_get(vg); 904 style->stroke.scale = evas_vg_shape_stroke_scale_get(vg);