From: ellson Date: Sun, 27 Feb 2005 13:36:25 +0000 (+0000) Subject: fix ellipse rotation in cairo plugin X-Git-Tag: LAST_LIBGRAPH~32^2~7859 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b583b3fa5d5bf18984ae45763add6b82316be2e2;p=graphviz fix ellipse rotation in cairo plugin --- diff --git a/lib/gvc/gvrender.c b/lib/gvc/gvrender.c index e1e04e8b6..826aba52b 100644 --- a/lib/gvc/gvrender.c +++ b/lib/gvc/gvrender.c @@ -794,13 +794,12 @@ void gvrender_ellipse(GVC_t * gvc, point p, int rx, int ry, int filled) pointf AF[2]; int i; - /* left */ - AF[0].x = (double) (p.x - rx); + /* center */ + AF[0].x = (double) p.x; AF[0].y = (double) p.y; - /* top */ - AF[1].x = (double) p.x; - AF[1].y = (double) (p.y - ry); - + /* corner */ + AF[1].x = (double) (p.x + rx); + AF[1].y = (double) (p.y + ry); /* end hack */ for (i = 0; i < 2; i++) AF[i] = gvrender_ptf(gvc, AF[i]);