diff options
Diffstat (limited to 'src/cairo/cdcairops.c')
-rw-r--r-- | src/cairo/cdcairops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo/cdcairops.c b/src/cairo/cdcairops.c index 52268e5..b08aee4 100644 --- a/src/cairo/cdcairops.c +++ b/src/cairo/cdcairops.c @@ -126,10 +126,12 @@ static void cdcreatecanvas(cdCanvas* canvas, void* data) surface = cairo_ps_surface_create(filename, w_pt, h_pt); +#if (CAIRO_VERSION_MAJOR>1 || (CAIRO_VERSION_MAJOR==1 && CAIRO_VERSION_MINOR>=6)) if (level == 2) cairo_ps_surface_restrict_to_level(surface, CAIRO_PS_LEVEL_2); else if (level == 3) cairo_ps_surface_restrict_to_level(surface, CAIRO_PS_LEVEL_3); +#endif if (eps) cairo_ps_surface_set_eps(surface, 1); |