Problem with handling of buggy_gradients

Vasant <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi,

I am looking at the following code fragment in the current version of 
cairo-xlib-display.c

|     /* Prior to Render 0.10, there is no protocol support for gradients and
      * we call function stubs instead, which would silently consume the drawing.
      */
#if RENDER_MAJOR == 0 && RENDER_MINOR < 10
     display->buggy_gradients = TRUE;
#else
     display->buggy_gradients = FALSE;
#endif

The problem with this fix is that it will only work correctly if both X-client and X-server are
running on the same machine. If the X-server is running on a remote machine with RENDER_MINOR < 10 this
won't work. We should use XRenderQueryVersion() instead.

Regards
Vasant
|

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.