From 5152ad398343153c61476550447d6dbe350b71af Mon Sep 17 00:00:00 2001 From: Sung-Taek Hong Date: Fri, 16 Oct 2015 15:17:18 +0900 Subject: [PATCH] [Button] enable double promotion when calc vector size Signed-off-by: Sung-Taek Hong Change-Id: I4a71857098f2ce725712b286a751f474f4e7c3d9 --- src/lib/tizen_vector.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/tizen_vector.c b/src/lib/tizen_vector.c index 7c1f0a4..96f94ee 100644 --- a/src/lib/tizen_vector.c +++ b/src/lib/tizen_vector.c @@ -1327,8 +1327,8 @@ button_effect_no_bg_resize_cb(void *data, Evas *e EINA_UNUSED, evas_vg_shape_shape_reset(vd->shape[0]); if (vd->is_circle) { - double radius_w = w / 2; - double radius_h = h / 2; + double radius_w = w / 2.0; + double radius_h = h / 2.0; evas_vg_shape_shape_append_circle(vd->shape[0], radius_w, radius_h, radius_w); } else @@ -1431,8 +1431,8 @@ button_effect_resize_cb(void *data, Evas *e EINA_UNUSED, evas_vg_shape_shape_reset(vd->shape[1]); if (vd->is_circle) { - double radius_w = w / 2; - double radius_h = h / 2; + double radius_w = w / 2.0; + double radius_h = h / 2.0; evas_vg_shape_shape_append_circle(vd->shape[1], radius_w, radius_h, radius_w); } else @@ -1462,8 +1462,8 @@ button_base_resize_cb(void *data, Evas *e EINA_UNUSED, evas_vg_shape_shape_reset(vd->shape[0]); if (vd->is_circle) { - double radius_w = w / 2; - double radius_h = h / 2; + double radius_w = w / 2.0; + double radius_h = h / 2.0; evas_vg_shape_shape_append_circle(vd->shape[0], radius_w, radius_h, radius_w); } else -- 2.7.4