From: Subhransu Mohanty Date: Fri, 3 Apr 2015 14:34:14 +0000 (+0200) Subject: efl: simplify append_circle() api implementation. X-Git-Tag: v1.14.0-alpha1~44^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=03c5e052e84c3bf984b80263b3e13236da20ce81;p=platform%2Fupstream%2Fefl.git efl: simplify append_circle() api implementation. Signed-off-by: Cedric BAIL --- diff --git a/src/lib/efl/interfaces/efl_gfx_shape.c b/src/lib/efl/interfaces/efl_gfx_shape.c index 632c5bf979..35683ac010 100644 --- a/src/lib/efl/interfaces/efl_gfx_shape.c +++ b/src/lib/efl/interfaces/efl_gfx_shape.c @@ -788,13 +788,11 @@ _efl_gfx_shape_append_close(Eo *obj, Efl_Gfx_Shape_Data *pd) void _efl_gfx_shape_append_circle(Eo *obj, Efl_Gfx_Shape_Data *pd, - double x, double y, double radius) + double xc, double yc, double radius) { - _efl_gfx_shape_append_move_to(obj, pd, x - radius, y); - _efl_gfx_shape_append_arc_to(obj, pd, x + radius, y, radius, radius, 0, EINA_FALSE, EINA_TRUE); - _efl_gfx_shape_append_arc_to(obj, pd, x, y + radius, radius, radius, 0, EINA_FALSE, EINA_TRUE); - _efl_gfx_shape_append_arc_to(obj, pd, x - radius, y, radius, radius, 0, EINA_FALSE, EINA_TRUE); - _efl_gfx_shape_append_arc_to(obj, pd, x, y - radius, radius, radius, 0, EINA_FALSE, EINA_TRUE); + _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); } void