[cairo] Problem with handling of buggy_gradients

Vasant support at microxwin.com
Thu Dec 5 19:19:29 PST 2013


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
|


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20131205/3426838f/attachment.html>


More information about the cairo mailing list