[cairo-commit] cairo/src cairo-pdf-surface.c, 1.56, 1.57 cairo-ps-surface.c, 1.47, 1.48

Kristian Hogsberg commit at pdx.freedesktop.org
Sat Aug 20 03:36:46 EST 2005


Committed by: krh

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

Modified Files:
	cairo-pdf-surface.c cairo-ps-surface.c 
Log Message:
2005-08-19  Kristian Høgsberg  <krh at redhat.com>

        * src/cairo-ps-surface.c (cairo_ps_surface_set_dpi): Add this
        missing fuction.

        * src/cairo-pdf-surface.c (cairo_pdf_surface_create): Document
        this funtion.



Index: cairo-pdf-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-pdf-surface.c,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- cairo-pdf-surface.c	9 Aug 2005 01:35:22 -0000	1.56
+++ cairo-pdf-surface.c	19 Aug 2005 17:36:44 -0000	1.57
@@ -336,6 +336,16 @@
     return _cairo_pdf_surface_create_for_stream_internal (stream, width, height);
 }
 
+/**
+ * cairo__surface_set_dpi:
+ * @surface: a postscript cairo_surface_t
+ * @x_dpi: horizontal dpi
+ * @y_dpi: vertical dpi
+ * 
+ * Set horizontal and vertical resolution for image fallbacks.  When
+ * the pdf backend needs to fall back to image overlays, it will use
+ * this resolution.
+ **/
 void
 cairo_pdf_surface_set_dpi (cairo_surface_t	*surface,
 			   double		x_dpi,

Index: cairo-ps-surface.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo-ps-surface.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- cairo-ps-surface.c	14 Aug 2005 00:38:23 -0000	1.47
+++ cairo-ps-surface.c	19 Aug 2005 17:36:44 -0000	1.48
@@ -154,6 +154,27 @@
 							 height_in_points);
 }
 
+/**
+ * cairo_ps_surface_set_dpi:
+ * @surface: a postscript cairo_surface_t
+ * @x_dpi: horizontal dpi
+ * @y_dpi: vertical dpi
+ * 
+ * Set horizontal and vertical resolution for image fallbacks.  When
+ * the postscript backend needs to fall back to image overlays, it
+ * will use this resolution.
+ **/
+void
+cairo_ps_surface_set_dpi (cairo_surface_t *surface,
+			  double	   x_dpi,
+			  double	   y_dpi)
+{
+    cairo_ps_surface_t *ps_surface = (cairo_ps_surface_t *) surface;
+
+    ps_surface->x_dpi = x_dpi;    
+    ps_surface->y_dpi = y_dpi;    
+}
+
 static cairo_status_t
 _cairo_ps_surface_finish (void *abstract_surface)
 {



More information about the cairo-commit mailing list