[cairo-commit] svgslides/src svgslides-output.c,1.1,1.2

Kristian Hogsberg commit at pdx.freedesktop.org
Tue Feb 15 11:49:01 PST 2005


Committed by: krh

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

Modified Files:
	svgslides-output.c 
Log Message:
2005-02-15  Kristian Høgsberg  <krh at redhat.com>

        * src/svgslides-output.c (svgslides_document_output_pdf): Set DPI
        to 300 for PDF output.

        * configure.in: Remove svgslides-output/Makefile from AC_OUTPUT.



Index: svgslides-output.c
===================================================================
RCS file: /cvs/cairo/svgslides/src/svgslides-output.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- svgslides-output.c	13 Feb 2005 15:48:03 -0000	1.1
+++ svgslides-output.c	15 Feb 2005 19:48:59 -0000	1.2
@@ -142,7 +142,6 @@
     cairo_t *cr;
     SVGSlidesSlide *slide;
     int i, width, height;
-    double scale;
     char *data;
 
     file = fopen (filename, "w");
@@ -150,8 +149,7 @@
 
     data = malloc (100 * 100 * 4);
 
-    cairo_set_target_pdf (cr, file, 11, 8.5, 10, 10);
-    scale = 1;
+    cairo_set_target_pdf (cr, file, 11, 8.5, 300, 300);
 
     for (i = 0; i < document->slides->len; i++) {
 	slide = g_ptr_array_index (document->slides, i);
@@ -160,8 +158,6 @@
 
 	svg_cairo_get_size (slide->svg, &width, &height);
 
-	cairo_scale (cr, scale, scale);
-
 	svg_cairo_render (slide->svg, cr);
 
 	cairo_show_page (cr);




More information about the cairo-commit mailing list