Re: BadImplementation X Window System error with GTK+ 2.6.1



Albert Chin wrote:

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?
The version number is the version of the protocol rather than the version of the implementation (similar to how Apache implements version 1.1 of the HTTP protocol while its version is 2.0.x).

It would be an error for an alternative implementation to claim that it supported protocol version >= 0.4 while not implementing those requests.

James.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]