From b583b3fa5d5bf18984ae45763add6b82316be2e2 Mon Sep 17 00:00:00 2001 From: ellson Date: Sun, 27 Feb 2005 13:36:25 +0000 Subject: [PATCH] fix ellipse rotation in cairo plugin --- lib/gvc/gvrender.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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]); -- 2.40.0