[cairo-commit] cairo/test cairo-test.c, 1.75, 1.76 multi-page.c, 1.3, 1.4

Carl Worth commit at pdx.freedesktop.org
Wed Jan 18 16:40:19 PST 2006


Committed by: cworth

Update of /cvs/cairo/cairo/test
In directory gabe:/tmp/cvs-serv14934/test

Modified Files:
	cairo-test.c multi-page.c 
Log Message:

2006-01-18  Carl Worth  <cworth at cworth.org>

        * src/cairo-image-surface.c: Change documentation to recommend
        cairo_paint rather than cairo_rectangle;cairo_fill for clearing a
        surface.

        * src/cairo-pdf.h:
        * src/cairo-pdf-surface.c: (cairo_pdf_surface_create_for_stream),
        (cairo_pdf_surface_create): Add documentation. Add a
        cairo_content_t argument to PDF surface constructors.

        * src/cairo-ps.h:
        * src/cairo-ps-surface.c: (cairo_ps_surface_create),
        (cairo_ps_surface_create_for_stream): Add documentation. Add a
        cairo_content_t argument to PS surface constructors.

        * test/multi-page.c: (main):
        * test/cairo-test.c: (create_ps_surface), (create_pdf_surface):
        Track changes in PS/PDF surface constructor API.


Index: cairo-test.c
===================================================================
RCS file: /cvs/cairo/cairo/test/cairo-test.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- cairo-test.c	18 Jan 2006 00:59:08 -0000	1.75
+++ cairo-test.c	19 Jan 2006 00:40:17 -0000	1.76
@@ -1126,7 +1126,7 @@
     xasprintf (&ptc->filename, "%s-ps-%s-out.ps",
 	       test->name, _cairo_test_content_name (content));
 
-    surface = cairo_ps_surface_create (ptc->filename, width, height);
+    surface = cairo_ps_surface_create (ptc->filename, content, width, height);
     if (cairo_surface_status (surface)) {
 	free (ptc->filename);
 	free (ptc);
@@ -1194,7 +1194,7 @@
     xasprintf (&ptc->filename, "%s-pdf-%s-out.pdf",
 	       test->name, _cairo_test_content_name (content));
 
-    surface = cairo_pdf_surface_create (ptc->filename, width, height);
+    surface = cairo_pdf_surface_create (ptc->filename, content, width, height);
     if (cairo_surface_status (surface)) {
 	free (ptc->filename);
 	free (ptc);

Index: multi-page.c
===================================================================
RCS file: /cvs/cairo/cairo/test/multi-page.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- multi-page.c	18 Jan 2006 00:59:08 -0000	1.3
+++ multi-page.c	19 Jan 2006 00:40:17 -0000	1.4
@@ -139,7 +139,7 @@
 #if CAIRO_HAS_PS_SURFACE
     filename = "multi-page.ps";
 
-    surface = cairo_ps_surface_create (filename,
+    surface = cairo_ps_surface_create (filename, CAIRO_CONTENT_COLOR,
 				       WIDTH_IN_POINTS, HEIGHT_IN_POINTS);
     status = cairo_surface_status (surface);
     if (status) {
@@ -158,7 +158,7 @@
 #if CAIRO_HAS_PDF_SURFACE
     filename = "multi-page.pdf";
 
-    surface = cairo_pdf_surface_create (filename,
+    surface = cairo_pdf_surface_create (filename, CAIRO_CONTENT_COLOR,
 					WIDTH_IN_POINTS, HEIGHT_IN_POINTS);
     status = cairo_surface_status (surface);
     if (status) {



More information about the cairo-commit mailing list