]> git.cworth.org Git - svg2png/commitdiff
Remove painting of background to white
authorCarl Worth <cworth@cworth.org>
Fri, 7 Sep 2007 15:58:56 +0000 (08:58 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 7 Sep 2007 15:58:56 +0000 (08:58 -0700)
Some applications legitmately handle PDF files with a transparent background,
so don't get in the way of that.

svg2pdf.c

index 867fcac9b489ab7e979a5659e64791f79a0410fc..6d586c3fa66aee2c0c7e200c4ef325eaec0f5c13 100644 (file)
--- a/svg2pdf.c
+++ b/svg2pdf.c
@@ -70,10 +70,6 @@ int main (int argc, char *argv[])
     surface = cairo_pdf_surface_create (output_filename, width, height);
     cr = cairo_create (surface);
 
-    /* Clear background */
-    cairo_set_source_rgb (cr, 1.0, 1.0, 1.0); /* white */
-    cairo_paint (cr);
-
     rsvg_handle_render_cairo (handle, cr);
 
     status = cairo_status (cr);