diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2007-04-20 03:33:58 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2007-04-21 02:51:22 -0400 |
commit | 3885fff3e6215023e801dd2c72fc39560a4e22fd (patch) | |
tree | 48b296216b6eac07a6e72c703e4040c5469ed0b1 /boilerplate/cairo-boilerplate-ps.c | |
parent | 57dc972d6e5fe715a83cbcaad9c6cc3d38bf8129 (diff) |
[ps] Get rid of _cairo_ps_test_force_fallbacks
in favor of cairo_boilerplate_ps_surface_force_fallbacks.
Diffstat (limited to 'boilerplate/cairo-boilerplate-ps.c')
-rw-r--r-- | boilerplate/cairo-boilerplate-ps.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/boilerplate/cairo-boilerplate-ps.c b/boilerplate/cairo-boilerplate-ps.c index 676d3e863..291ac2e96 100644 --- a/boilerplate/cairo-boilerplate-ps.c +++ b/boilerplate/cairo-boilerplate-ps.c @@ -25,9 +25,11 @@ */ #include "cairo-boilerplate.h" +#include "cairo-boilerplate-ps.h" #include "cairo-boilerplate-ps-private.h" #include <cairo-ps.h> +#include <cairo-ps-surface-private.h> cairo_user_data_key_t ps_closure_key; @@ -136,3 +138,16 @@ _cairo_boilerplate_ps_cleanup (void *closure) free (ptc->filename); free (ptc); } + +cairo_status_t +cairo_boilerplate_ps_surface_force_fallbacks (cairo_surface_t *abstract_surface) +{ + cairo_ps_surface_t *surface = (cairo_ps_surface_t*) abstract_surface; + + if (cairo_surface_get_type (abstract_surface) != CAIRO_SURFACE_TYPE_PS) + return CAIRO_STATUS_SURFACE_TYPE_MISMATCH; + + surface->force_fallbacks = TRUE; + + return CAIRO_STATUS_SUCCESS; +} |