efl: update append_circle implementation to use _efl_gfx_shape_append_arc.
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Thu, 5 Nov 2015 10:32:08 +0000 (19:32 +0900)
committerCedric BAIL <cedric@osg.samsung.com>
Mon, 30 Nov 2015 23:48:06 +0000 (15:48 -0800)
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/efl/interfaces/efl_gfx_shape.c

index e4efcef..49b6e5f 100644 (file)
@@ -1141,9 +1141,8 @@ static void
 _efl_gfx_shape_append_circle(Eo *obj, Efl_Gfx_Shape_Data *pd,
                              double xc, double yc, double radius)
 {
-   _efl_gfx_shape_append_move_to(obj, pd, xc - radius, yc);
-   _efl_gfx_shape_append_arc_to(obj, pd, xc + radius, yc, radius, radius, 0, EINA_TRUE, EINA_TRUE);
-   _efl_gfx_shape_append_arc_to(obj, pd, xc - radius, yc, radius, radius, 0, EINA_TRUE, EINA_TRUE);
+   _efl_gfx_shape_append_arc(obj, pd, xc - radius, yc - radius, 2*radius, 2*radius, 0, 360);
+   _efl_gfx_shape_append_close(obj, pd);
 }
 
 static void