[cairo-commit] goocanvas/src demo-paths.c, 1.2, 1.3 goocanvaspathview.c, 1.2, 1.3

Damon Chaplin commit at pdx.freedesktop.org
Tue Apr 11 06:42:18 PDT 2006


Committed by: damon

Update of /cvs/cairo/goocanvas/src
In directory kemper:/tmp/cvs-serv10162/src

Modified Files:
	demo-paths.c goocanvaspathview.c 
Log Message:
2006-04-11  Damon Chaplin  <damon at gnome.org>

	* src/demo-paths.c (create_paths): added more arc tests.



Index: demo-paths.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/demo-paths.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- demo-paths.c	11 Apr 2006 13:33:19 -0000	1.2
+++ demo-paths.c	11 Apr 2006 13:42:16 -0000	1.3
@@ -77,6 +77,27 @@
 			      "stroke-color", "red",
 			      "line-width", 5.0,
 			      NULL);
+
+  path = goo_canvas_path_new (root,
+			      "M 525,75 a100,50 0 0,0 100,50",
+			      "stroke-color", "red",
+			      "line-width", 5.0,
+			      NULL);
+  path = goo_canvas_path_new (root,
+			      "M 725,75 a100,50 0 0,1 100,50",
+			      "stroke-color", "red",
+			      "line-width", 5.0,
+			      NULL);
+  path = goo_canvas_path_new (root,
+			      "M 525,200 a100,50 0 1,0 100,50",
+			      "stroke-color", "red",
+			      "line-width", 5.0,
+			      NULL);
+  path = goo_canvas_path_new (root,
+			      "M 725,200 a100,50 0 1,1 100,50",
+			      "stroke-color", "red",
+			      "line-width", 5.0,
+			      NULL);
 }
 
 

Index: goocanvaspathview.c
===================================================================
RCS file: /cvs/cairo/goocanvas/src/goocanvaspathview.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- goocanvaspathview.c	11 Apr 2006 13:33:19 -0000	1.2
+++ goocanvaspathview.c	11 Apr 2006 13:42:16 -0000	1.3
@@ -266,6 +266,8 @@
 }
 
 
+/* FIXME: Maybe we should do these calculations once when the path data is
+   parsed, and keep the cairo parameters we need in the command instead. */
 static void
 do_elliptical_arc (GooCanvasPathCommand    *cmd,
 		   cairo_t                 *cr,



More information about the cairo-commit mailing list