[Button] erase meaningless radius calc
authorSung-Taek Hong <sth253.hong@samsung.com>
Mon, 17 Aug 2015 14:49:37 +0000 (23:49 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Tue, 17 Nov 2015 05:15:43 +0000 (14:15 +0900)
Change-Id: I01489794f02840ca668857441ead75ffa043af58
Signed-off-by: Sung-Taek Hong <sth253.hong@samsung.com>
src/lib/tizen_vector.c

index 5cc05ab..ff3ad21 100644 (file)
@@ -1209,8 +1209,8 @@ button_effect_no_bg_resize_cb(void *data, Evas *e EINA_UNUSED,
      evas_vg_shape_shape_append_rect(vd->shape[0], 0, 0, w, h, vd->corner, vd->corner);
    else
      {
-        int radius_w = adjust_radius(w/2);
-        int radius_h = adjust_radius(h/2);
+        int radius_w = w / 2;
+        int radius_h = h / 2;
         evas_vg_shape_shape_append_circle(vd->shape[0], radius_w, radius_h, radius_h);
      }
 }
@@ -1295,8 +1295,8 @@ button_effect_resize_cb(void *data, Evas *e EINA_UNUSED,
      evas_vg_shape_shape_append_rect(vd->shape[1], 0, 0, w, h, vd->corner, vd->corner);
    else
      {
-        int radius_w = adjust_radius(w/2);
-        int radius_h = adjust_radius(h/2);
+        int radius_w = w / 2;
+        int radius_h = h / 2;
         if (w == h)
           evas_vg_shape_shape_append_circle(vd->shape[1], radius_w, radius_h, radius_w);
         else
@@ -1321,8 +1321,8 @@ button_base_resize_cb(void *data, Evas *e EINA_UNUSED,
      evas_vg_shape_shape_append_rect(vd->shape[0], 0, 0, w, h, vd->corner, vd->corner);
    else
      {
-        int radius_w = adjust_radius(w/2);
-        int radius_h = adjust_radius(h/2);
+        int radius_w = w / 2;
+        int radius_h = h / 2;
         if (w == h)
           evas_vg_shape_shape_append_circle(vd->shape[0], radius_w, radius_h, radius_w);
         else