summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/static_libs/vg_common/vg_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/static_libs/vg_common/vg_common.c b/src/static_libs/vg_common/vg_common.c
index eb8a293829..1593a089ed 100644
--- a/src/static_libs/vg_common/vg_common.c
+++ b/src/static_libs/vg_common/vg_common.c
@@ -612,10 +612,10 @@ _apply_gradient_property(Svg_Style_Gradient *g, Efl_VG *vg, Efl_VG *parent, Vg_F
612 612
613 efl_gfx_path_bounds_get(grad_obj, &grad_geom); 613 efl_gfx_path_bounds_get(grad_obj, &grad_geom);
614 614
615 double cy = grad_geom.h / 2 + grad_geom.y; 615 double cy = (grad_geom.h / 2.0) + grad_geom.y;
616 double cy_scaled = (grad_geom.h / 2) * scale_reversed_Y; 616 double cy_scaled = (grad_geom.h / 2.0) * scale_reversed_Y;
617 double cx = grad_geom.w / 2 + grad_geom.x; 617 double cx = (grad_geom.w / 2.0) + grad_geom.x;
618 double cx_scaled = (grad_geom.w / 2) * scale_reversed_X; 618 double cx_scaled = (grad_geom.w / 2.0) * scale_reversed_X;
619 619
620 /* matrix tranformation of gradient figure: 620 /* matrix tranformation of gradient figure:
621 * 0. we remember size of gradient and it's center point 621 * 0. we remember size of gradient and it's center point