[Button] adjust center of circle button as its fixed for software vector backend.
authorSung-Taek Hong <sth253.hong@samsung.com>
Mon, 31 Aug 2015 12:49:30 +0000 (21:49 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Tue, 17 Nov 2015 05:15:43 +0000 (14:15 +0900)
Change-Id: I88193f56f8e4ddd8d5e9552e1efa02f3bcdd5679
Signed-off-by: Sung-Taek Hong <sth253.hong@samsung.com>
src/lib/tizen_vector.c

index c22b5cba23b8286243deafe49bd1e757fff33d81..128e2389b1257a77e04567752bb7fd14b2c80dcd 100644 (file)
@@ -1158,8 +1158,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)
      {
-        int radius_w = w / 2;
-        int radius_h = h / 2;
+        double radius_w = w / 2;
+        double radius_h = h / 2;
         evas_vg_shape_shape_append_circle(vd->shape[0], radius_w, radius_h, radius_w);
      }
    else
@@ -1262,8 +1262,8 @@ button_effect_resize_cb(void *data, Evas *e EINA_UNUSED,
    evas_vg_shape_shape_reset(vd->shape[1]);
    if (vd->is_circle)
      {
-        int radius_w = w / 2;
-        int radius_h = h / 2;
+        double radius_w = w / 2;
+        double radius_h = h / 2;
         evas_vg_shape_shape_append_circle(vd->shape[1], radius_w, radius_h, radius_w);
      }
    else
@@ -1293,8 +1293,8 @@ button_base_resize_cb(void *data, Evas *e EINA_UNUSED,
    evas_vg_shape_shape_reset(vd->shape[0]);
    if (vd->is_circle)
      {
-        int radius_w = w / 2;
-        int radius_h = h / 2;
+        double radius_w = w / 2;
+        double radius_h = h / 2;
         evas_vg_shape_shape_append_circle(vd->shape[0], radius_w, radius_h, radius_w);
      }
    else