summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2017-03-16 17:55:26 +0200
committerJean-Philippe Andre <jp.andre@samsung.com>2017-11-07 11:54:09 +0900
commit66e0caccb7cfc15daf362c75f1b28689d2d2ab02 (patch)
treea7f2fd9c3fdf725043acdca5e29f985e46050345
parentd98e2323ad93e66b13841d60cbfdd17cdf8fdff2 (diff)
evas_vg_load_svg: default stop opacity color should be 255, not 0
@fix
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c2
-rw-r--r--src/static_libs/vg_common/vg_common.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
index 1734472a3a..cec86e6eae 100644
--- a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
+++ b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
@@ -2098,6 +2098,8 @@ _evas_svg_loader_xml_open_parser(Evas_SVG_Loader *loader,
2098 else if (!strcmp(tag_name, "stop")) 2098 else if (!strcmp(tag_name, "stop"))
2099 { 2099 {
2100 Efl_Gfx_Gradient_Stop *stop = calloc(1, sizeof(Efl_Gfx_Gradient_Stop)); 2100 Efl_Gfx_Gradient_Stop *stop = calloc(1, sizeof(Efl_Gfx_Gradient_Stop));
2101 /* default value for opacity */
2102 stop->a = 255;
2101 eina_simple_xml_attributes_parse(attrs, attrs_length, 2103 eina_simple_xml_attributes_parse(attrs, attrs_length,
2102 _attr_parse_stops, stop); 2104 _attr_parse_stops, stop);
2103 if (loader->gradient) 2105 if (loader->gradient)
diff --git a/src/static_libs/vg_common/vg_common.c b/src/static_libs/vg_common/vg_common.c
index 21b9201b70..7f54e355e9 100644
--- a/src/static_libs/vg_common/vg_common.c
+++ b/src/static_libs/vg_common/vg_common.c
@@ -651,7 +651,7 @@ _apply_gradient_property(Svg_Style_Gradient *g, Efl_VG *vg, Vg_File_Data *vg_dat
651 stops[i].r = stop->r; 651 stops[i].r = stop->r;
652 stops[i].g = stop->g; 652 stops[i].g = stop->g;
653 stops[i].b = stop->b; 653 stops[i].b = stop->b;
654 stops[i].a = 255; 654 stops[i].a = stop->a;
655 stops[i].offset = stop->offset; 655 stops[i].offset = stop->offset;
656 i++; 656 i++;
657 } 657 }