[cairo] clipping bug

Radek Doulík rodo at novell.com
Tue Aug 23 12:13:41 PDT 2005


Hi,

I ran to a clipping bug. It happens when everything is clipped out and
when _cairo_clip_intersect_mask has to be used. At one point
XCreatePixmap is called with zero width and height, which generates
BadValue X error.

I am attaching patch for cairo/test directory with clip-all test which
demonstrates that problem. Note that it enables X synchronization in
cairo-test.c.

Perhaps someone who knows the clipping code can cook a quick fix.

Cheers
Radek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clip-all.patch
Type: text/x-patch
Size: 2620 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050823/8a2c8dec/clip-all-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clip-all-ref.png
Type: image/png
Size: 118 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050823/8a2c8dec/clip-all-ref-0001.png


More information about the cairo mailing list