From 2ca4b95b0fd09dad23a58a75542e3dc77aaf2b60 Mon Sep 17 00:00:00 2001 From: theadib Date: Wed, 26 Dec 2007 22:02:12 +0000 Subject: [PATCH] check for cairo version --- src/extension/internal/cairo-ps-out.cpp | 2 +- src/extension/internal/cairo-render-context.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/internal/cairo-ps-out.cpp b/src/extension/internal/cairo-ps-out.cpp index 5681fda5e..475f4d973 100644 --- a/src/extension/internal/cairo-ps-out.cpp +++ b/src/extension/internal/cairo-ps-out.cpp @@ -164,7 +164,7 @@ CairoPsOutput::init (void) "org.inkscape.print.ps.cairo\n" "\n" "" N_("PostScript 3") "\n" -#if (CAIRO_VERSION >= 010502) +#if (CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 5, 2) "" N_("PostScript level 2") "\n" #endif "\n" diff --git a/src/extension/internal/cairo-render-context.cpp b/src/extension/internal/cairo-render-context.cpp index 228f596dd..9a2cab829 100644 --- a/src/extension/internal/cairo-render-context.cpp +++ b/src/extension/internal/cairo-render-context.cpp @@ -693,7 +693,7 @@ CairoRenderContext::setupSurface(double width, double height) #ifdef CAIRO_HAS_PS_SURFACE case CAIRO_SURFACE_TYPE_PS: surface = cairo_ps_surface_create_for_stream(Inkscape::Extension::Internal::_write_callback, _stream, width, height); -#if (CAIRO_VERSION >= 010502) +#if (CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 5, 2)) cairo_ps_surface_restrict_to_level (surface, (cairo_ps_level_t)_ps_level); #endif break; -- 2.30.2