summaryrefslogtreecommitdiff
path: root/src/cairo/cdcairops.c
diff options
context:
space:
mode:
authorscuri <scuri>2010-06-25 03:00:48 +0000
committerscuri <scuri>2010-06-25 03:00:48 +0000
commitb880f13768528657cb392f6894bf626f16590e64 (patch)
tree9bceab7e9a4b9615019bafea294c392be18eb456 /src/cairo/cdcairops.c
parentcc230deb11b91957dcd656f150ffff698237f906 (diff)
*** empty log message ***
Diffstat (limited to 'src/cairo/cdcairops.c')
-rw-r--r--src/cairo/cdcairops.c2
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);