On Tue, Jan 18, 2005 at 01:53:52PM +0800, James Henstridge wrote:
You can query the XRENDER extension protocol version using the
XRenderQueryVersion() function. From the Cairo source, it would appear
that the given protocol request was added in version 0.4:
#define CAIRO_SURFACE_RENDER_HAS_TRAPEZOIDS(surface)
CAIRO_SURFACE_RENDER_AT_LEAST((surface), 0, 4)
Also, remember that the availability of the CompositeTrapezoids will
differ from display to display, so a global
"has_xrender_composite_trapezoids" variable would not be appropriate
here (although you probably want to cache the result of
XRenderQueryVersion).
Isn't this an XFree86-specific solution though? Or do all vendors
(e.g. Sun) base their RENDER extension on Xrender from XFree86/xorg?