summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-02-18 14:53:09 +0900
committerHermet Park <hermetpark@gmail.com>2019-02-21 10:36:49 +0900
commit63e11e1b18f0af3c491f3d793fc683e2eb7e9f08 (patch)
treedcd1c46e2d360fb538a4ea0547da9fb035d8e2d8 /src/static_libs
parenta8d5f275c780692df8a63897601a0c05e48678ac (diff)
evas vg: avoid integral division not to loss precision.
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_svg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/static_libs/vg_common/vg_common_svg.c b/src/static_libs/vg_common/vg_common_svg.c
index eba876e..703ebde 100644
--- a/src/static_libs/vg_common/vg_common_svg.c
+++ b/src/static_libs/vg_common/vg_common_svg.c
@@ -608,10 +608,10 @@ _apply_gradient_property(Svg_Style_Gradient *g, Efl_VG *vg, Efl_VG *parent, Vg_F
608 608
609 efl_gfx_path_bounds_get(grad_obj, &grad_geom); 609 efl_gfx_path_bounds_get(grad_obj, &grad_geom);
610 610
611 double cy = (grad_geom.h / 2) + grad_geom.y; 611 double cy = ((double) grad_geom.h) * 0.5 + grad_geom.y;
612 double cy_scaled = (grad_geom.h / 2) * scale_reversed_Y; 612 double cy_scaled = (((double) grad_geom.h) * 0.5) * scale_reversed_Y;
613 double cx = grad_geom.w / 2 + grad_geom.x; 613 double cx = ((double) grad_geom.w) * 0.5 + grad_geom.x;
614 double cx_scaled = (grad_geom.w / 2) * scale_reversed_X; 614 double cx_scaled = (((double) grad_geom.w) * 0.5) * scale_reversed_X;
615 615
616 /* matrix tranformation of gradient figure: 616 /* matrix tranformation of gradient figure:
617 * 0. we remember size of gradient and it's center point 617 * 0. we remember size of gradient and it's center point