summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2018-09-21 12:30:50 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-09-27 10:13:57 +0200
commit5e0877ca2c0605df7a27dcdaaaba78885460dc0f (patch)
treefea2a575ae0b7317eae04e62fa2f7709925b8f62 /src/static_libs
parentc0b672db9c55488e0c47f8373c5e5a1a7b5c11b1 (diff)
efl_vg: calculate center point with double type
Although the center point is double type, the calculation is integer type. To calculate center point correctly, calculate with double type. Differential Revision: https://phab.enlightenment.org/D7097
Diffstat (limited to 'src/static_libs')
-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 eb8a293..1593a08 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