[cairo-commit] libsvg-cairo/src svg_cairo.c,1.37,1.38

Carl Worth commit at pdx.freedesktop.org
Tue Jul 12 11:40:45 PDT 2005


Committed by: cworth

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

Modified Files:
	svg_cairo.c 
Log Message:

        * src/svg_cairo.c: (_svg_cairo_begin_group),
        (_svg_cairo_set_pattern): Track change in
        cairo_surface_create_similar to accept a cairo_content_t rather
        than a cairo_format_t.


Index: svg_cairo.c
===================================================================
RCS file: /cvs/cairo/libsvg-cairo/src/svg_cairo.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- svg_cairo.c	12 May 2005 18:12:41 -0000	1.37
+++ svg_cairo.c	12 Jul 2005 18:40:43 -0000	1.38
@@ -1,6 +1,6 @@
 /* libsvg-cairo - Render SVG documents using the cairo library
  *
- * Copyright © 2002 University of Southern California
+ * Copyright © 2002 University of Southern California
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Library General Public
@@ -382,7 +382,7 @@
 
     if (opacity != 1.0) {
 	child_surface = cairo_surface_create_similar (cairo_get_target (svg_cairo->cr),
-						      CAIRO_FORMAT_ARGB32,
+						      CAIRO_CONTENT_COLOR_ALPHA,
 						      svg_cairo->state->viewport_width,
 						      svg_cairo->state->viewport_height);
 	svg_cairo->state->child_surface = child_surface;
@@ -661,7 +661,7 @@
     cairo_save (svg_cairo->cr);
 
     pattern_surface = cairo_surface_create_similar (cairo_get_target (svg_cairo->cr),
-						    CAIRO_FORMAT_ARGB32,
+						    CAIRO_CONTENT_COLOR_ALPHA,
 						    (int) (width_px + 0.5),
 						    (int) (height_px + 0.5));
 




More information about the cairo-commit mailing list