diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | vcl/headless/svpgdi.cxx | 15 |
2 files changed, 2 insertions, 15 deletions
diff --git a/configure.ac b/configure.ac index f35fe56c02f6..c2fbe8c6e0da 100644 --- a/configure.ac +++ b/configure.ac @@ -11600,7 +11600,7 @@ if test "$test_cairo" = "yes"; then SYSTEM_CAIRO=TRUE AC_MSG_RESULT([yes]) - PKG_CHECK_MODULES( CAIRO, cairo >= 1.2.0 ) + PKG_CHECK_MODULES( CAIRO, cairo >= 1.10.0 ) CAIRO_CFLAGS=$(printf '%s' "$CAIRO_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g") FilterLibs "${CAIRO_LIBS}" CAIRO_LIBS="${filteredlibs}" diff --git a/vcl/headless/svpgdi.cxx b/vcl/headless/svpgdi.cxx index 2cf49ca17696..6ea82e67ee55 100644 --- a/vcl/headless/svpgdi.cxx +++ b/vcl/headless/svpgdi.cxx @@ -47,12 +47,6 @@ #include <unx/gendata.hxx> #include <dlfcn.h> -#if ENABLE_CAIRO_CANVAS -# if defined CAIRO_VERSION && CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 10, 0) -# define CAIRO_OPERATOR_DIFFERENCE (static_cast<cairo_operator_t>(23)) -# endif -#endif - namespace { basegfx::B2DRange getClipBox(cairo_t* cr) @@ -1805,14 +1799,7 @@ void SvpSalGraphics::invert(const basegfx::B2DPolygon &rPoly, SalInvert nFlags) cairo_set_source_rgb(cr, 1.0, 1.0, 1.0); - if (cairo_version() >= CAIRO_VERSION_ENCODE(1, 10, 0)) - { - cairo_set_operator(cr, CAIRO_OPERATOR_DIFFERENCE); - } - else - { - SAL_WARN("vcl.gdi", "SvpSalGraphics::invert, archaic cairo"); - } + cairo_set_operator(cr, CAIRO_OPERATOR_DIFFERENCE); if (nFlags & SalInvert::TrackFrame) { |