forked from enlightenment/efl
efl: update append_circle implementation to use _efl_gfx_shape_append_arc.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
4a48a7e9ea
commit
d5719aad9d
|
@ -1141,9 +1141,8 @@ static void
|
||||||
_efl_gfx_shape_append_circle(Eo *obj, Efl_Gfx_Shape_Data *pd,
|
_efl_gfx_shape_append_circle(Eo *obj, Efl_Gfx_Shape_Data *pd,
|
||||||
double xc, double yc, double radius)
|
double xc, double yc, double radius)
|
||||||
{
|
{
|
||||||
_efl_gfx_shape_append_move_to(obj, pd, xc - radius, yc);
|
_efl_gfx_shape_append_arc(obj, pd, xc - radius, yc - radius, 2*radius, 2*radius, 0, 360);
|
||||||
_efl_gfx_shape_append_arc_to(obj, pd, xc + radius, yc, radius, radius, 0, EINA_TRUE, EINA_TRUE);
|
_efl_gfx_shape_append_close(obj, pd);
|
||||||
_efl_gfx_shape_append_arc_to(obj, pd, xc - radius, yc, radius, radius, 0, EINA_TRUE, EINA_TRUE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue