aboutsummaryrefslogtreecommitdiffstats
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
parentvg_common: property apply "objectBoundingBox" morphings to radial gradient (diff)
downloadefl-66e0caccb7cfc15daf362c75f1b28689d2d2ab02.tar.gz
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,
else if (!strcmp(tag_name, "stop"))
{
Efl_Gfx_Gradient_Stop *stop = calloc(1, sizeof(Efl_Gfx_Gradient_Stop));
+ /* default value for opacity */
+ stop->a = 255;
eina_simple_xml_attributes_parse(attrs, attrs_length,
_attr_parse_stops, stop);
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
stops[i].r = stop->r;
stops[i].g = stop->g;
stops[i].b = stop->b;
- stops[i].a = 255;
+ stops[i].a = stop->a;
stops[i].offset = stop->offset;
i++;
}