]> granicus.if.org Git - graphviz/commitdiff
fix ellipse rotation in cairo plugin
authorellson <devnull@localhost>
Sun, 27 Feb 2005 13:36:25 +0000 (13:36 +0000)
committerellson <devnull@localhost>
Sun, 27 Feb 2005 13:36:25 +0000 (13:36 +0000)
lib/gvc/gvrender.c

index e1e04e8b6b90def1a8d8e5e28092ce1b156c2357..826aba52b97d5452c4da47d5372e3da99ea5121a 100644 (file)
@@ -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]);