Re: BadImplementation X Window System error with GTK+ 2.6.1



Albert Chin wrote:

Is it possible to query the RENDER extension to determine if it
supports the RenderTrapezoids request? I could then augment
_gdk_x11_have_render(). I haven't a clue about how to do this though.
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).

James.



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