From b880f13768528657cb392f6894bf626f16590e64 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 25 Jun 2010 03:00:48 +0000 Subject: *** empty log message *** --- src/cairo/cdcairops.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cairo/cdcairops.c') 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); -- cgit v1.2.3