[Xr] Clipping problems

Soorya Kuloor skuloor at verano.com
Wed May 28 13:47:29 PDT 2003

Hi Carl,

I am trying to use clipping in the Xr library and having problems with
it. Either my understanding of clipping is wrong or there is a bug. I am
attaching a sample C code that reproduces the problem. I modified the
xrtest.c to get the attached file.

In the function win_draw() I set clip first and then draw a filled
polygon. I am assuming that I should be able to see parts of the polygon
that intersects the clipping rectangle. The function has 2 clips (I use
one of them using the #if 0... stuff). The second clip behaves as
expected. But if I use the first clip I do not see anything on the
window, even though it intersects the polygon.

Am I doing something wrong?

-- Soorya

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xrclip.c
Type: text/x-c
Size: 2915 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20030528/141bc571/xrclip.bin

More information about the cairo mailing list