Add this missing fuction.

Document this funtion.
This commit is contained in:
Kristian Høgsberg 2005-08-19 10:36:43 +00:00
parent b626dff5b9
commit a2e798b5a1
3 changed files with 39 additions and 0 deletions

View file

@ -1,3 +1,11 @@
2005-08-19 Kristian Høgsberg <krh@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.
2005-08-19 Carl Worth <cworth@cworth.org>
Fix for bug #3915:

View file

@ -336,6 +336,16 @@ cairo_pdf_surface_create (const char *filename,
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,

View file

@ -154,6 +154,27 @@ cairo_ps_surface_create_for_stream (cairo_write_func_t write_func,
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)
{