From: theadib Date: Wed, 26 Dec 2007 22:02:12 +0000 (+0000) Subject: check for cairo version X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2ca4b95b0fd09dad23a58a75542e3dc77aaf2b60;p=inkscape.git check for cairo version --- 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;