[Button] enable double promotion when calc vector size
authorSung-Taek Hong <sth253.hong@samsung.com>
Fri, 16 Oct 2015 06:17:18 +0000 (15:17 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Tue, 17 Nov 2015 05:15:44 +0000 (14:15 +0900)
Signed-off-by: Sung-Taek Hong <sth253.hong@samsung.com>
Change-Id: I4a71857098f2ce725712b286a751f474f4e7c3d9

src/lib/tizen_vector.c

index 7c1f0a49fc5a7bbf31b6bb5edca41a18a2e7f89c..96f94ee1437af15f52e223ccf192cbe665c6744b 100644 (file)
@@ -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