[cairo-commit] configure.ac src/cairo-xlib-xrender-private.h

Behdad Esfahbod behdad at kemper.freedesktop.org
Mon Dec 16 16:28:01 PST 2013


 configure.ac                     |    2 +-
 src/cairo-xlib-xrender-private.h |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 040a9f678bfb0f0b89a0273b729c4e9f2bc23e4f
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Mon Dec 16 19:27:02 2013 -0500

    Check for XRenderSolidFill()

diff --git a/configure.ac b/configure.ac
index 959ae36..eb1f2a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,7 +147,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(xlib_xrender, Xlib Xrender, auto, [
     old_LIBS=$LIBS
     CFLAGS="$CFLAGS $xlib_CFLAGS $xlib_NONPKGCONFIG_CFLAGS $xlib_xrender_CFLAGS $xlib_xrender_NONPKGCONFIG_CFLAGS"
     LIBS="$LIBS $xlib_LIBS $xlib_NONPKGCONFIG_LIBS $xlib_xrender_LIBS $xlib_xrender_NONPKGCONFIG_LIBS"
-    AC_CHECK_FUNCS([XRenderCreateLinearGradient XRenderCreateRadialGradient XRenderCreateConicalGradient])
+    AC_CHECK_FUNCS([XRenderCreateSolidFill XRenderCreateLinearGradient XRenderCreateRadialGradient XRenderCreateConicalGradient])
     CFLAGS=$old_CFLAGS
     LIBS=$old_LIBS
 
diff --git a/src/cairo-xlib-xrender-private.h b/src/cairo-xlib-xrender-private.h
index bf3199c..9076946 100644
--- a/src/cairo-xlib-xrender-private.h
+++ b/src/cairo-xlib-xrender-private.h
@@ -96,6 +96,10 @@ __attribute__((__unused__)) static void   _void_consume_free   (Display *p, XID
 #define PictOpBlendMaximum			    0x3e
 #endif
 
+#if !HAVE_XRENDERCREATESOLIDFILL
+#define XRenderCreateSolidFill				_int_consume
+#endif
+
 #if !HAVE_XRENDERCREATELINEARGRADIENT
 #define XRenderCreateLinearGradient			_int_consume
 


More information about the cairo-commit mailing list