forked from enlightenment/efl
efl: simplify append_circle() api implementation.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
21ee9897bd
commit
03c5e052e8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue