Re: BadImplementation X Window System error with GTK+ 2.6.1
- From: Albert Chin <gtk-devel-list mlists thewrittenword com>
- To: gtk-devel-list gnome org
- Subject: Re: BadImplementation X Window System error with GTK+ 2.6.1
- Date: Tue, 18 Jan 2005 00:04:12 -0600
On Tue, Jan 18, 2005 at 01:53:52PM +0800, James Henstridge wrote:
> 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).
Isn't this an XFree86-specific solution though? Or do all vendors
(e.g. Sun) base their RENDER extension on Xrender from XFree86/xorg?
--
albert chin (china thewrittenword com)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]