[cairo-commit] cairo/src cairo-surface.c,1.99,1.100

Carl Worth commit at pdx.freedesktop.org
Thu Sep 29 06:49:49 PDT 2005


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv22296/src

Modified Files:
	cairo-surface.c 
Log Message:

2005-09-29  Carl Worth  <cworth at cworth.org>

        * ROADMAP: Add date of 2005-10-03 for 1.0.2. Add 4630 to the 1.0.2
        roadmap.


Index: cairo-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-surface.c,v
retrieving revision 1.99
retrieving revision 1.100
diff -u -d -r1.99 -r1.100
--- cairo-surface.c	24 Aug 2005 08:39:56 -0000	1.99
+++ cairo-surface.c	29 Sep 2005 13:49:47 -0000	1.100
@@ -1166,6 +1166,37 @@
 {
     cairo_int_status_t status;
 
+    int i;
+
+    printf ("<?xml version=\"1.0\" ?>\n"
+	    "<svg width=\"430\" height=\"400\" stroke=\"black\" fill=\"none\">\n"
+	    "  <g transform=\"translate(-1025,-1020),scale(0.0001,0.0001)\" stroke-width=\"13107\">\n");
+
+    for (i=0; i < num_traps; i++) {
+	cairo_trapezoid_t *trap;
+	trap = &traps[i];
+	printf( "    <path d=\"M %d, %d L %d, %d\" />\n",
+		trap->left.p1.y < trap->left.p2.y ? trap->left.p1.x : trap->left.p2.x,
+		trap->top,
+		trap->right.p1.y < trap->right.p2.y ? trap->right.p1.x : trap->right.p2.x,
+		trap->top);
+	printf( "    <path d=\"M %d, %d L %d, %d\" />\n",
+		trap->left.p1.y > trap->left.p2.y ? trap->left.p1.x : trap->left.p2.x,
+		trap->bottom,
+		trap->right.p1.y > trap->right.p2.y ? trap->right.p1.x : trap->right.p2.x,
+		trap->bottom);
+	printf ("    <path d=\"M %d, %d L %d, %d\" />\n",
+		trap->left.p1.x, trap->left.p1.y,
+		trap->left.p2.x, trap->left.p2.y);
+	printf ("    <path d=\"M %d, %d L %d, %d\" />\n",
+		trap->right.p1.x, trap->right.p1.y,
+		trap->right.p2.x, trap->right.p2.y);
+	printf ("\n");
+    }
+
+    printf ("  </g>\n"
+	    "</svg>\n");
+
     /* These operators aren't interpreted the same way by the backends;
      * they are implemented in terms of other operators in cairo-gstate.c
      */



More information about the cairo-commit mailing list