From ee64c74fdd38e35b6f8876f09fa777737a6de442 Mon Sep 17 00:00:00 2001 From: ellson Date: Tue, 5 Sep 2006 18:19:47 +0000 Subject: [PATCH] add ellipses --- plugin/ming/gvrender_ming.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin/ming/gvrender_ming.c b/plugin/ming/gvrender_ming.c index f81e3bb37..94ed1d4dc 100644 --- a/plugin/ming/gvrender_ming.c +++ b/plugin/ming/gvrender_ming.c @@ -112,6 +112,7 @@ static void ming_ellipse(GVJ_t * job, pointf * A, int filled) SWFMovie movie = (SWFMovie)(job->surface); SWFShape shape; SWFFill fill; + SWFDisplayItem item; obj_state_t *obj = job->obj; gvcolor_t pencolor = obj->pencolor; gvcolor_t fillcolor = obj->fillcolor; @@ -131,11 +132,13 @@ static void ming_ellipse(GVJ_t * job, pointf * A, int filled) fillcolor.u.rgba[3]); SWFShape_setRightFill(shape, fill); } - SWFShape_movePenTo(shape, A[0].x, A[0].y); + SWFShape_movePenTo(shape, 0, 0); rx = A[1].x - A[0].x; ry = A[1].y - A[0].y; - SWFShape_drawCircle(shape, rx); /* FIXME */ - SWFMovie_add(movie, (SWFBlock)shape); + SWFShape_drawCircle(shape, rx); + item = SWFMovie_add(movie, (SWFBlock)shape); + SWFDisplayItem_scale(item, 1., ry/rx); + SWFDisplayItem_moveTo(item, A[0].x, A[0].y); } static void -- 2.50.1