[cairo] Rewrite of _cairo_xlib_surface_set_clip_region

Owen Taylor otaylor at redhat.com
Tue Mar 15 17:14:36 PST 2005


On Fri, 2005-03-11 at 15:24 -0500, Owen Taylor wrote:
> Here's a patch to rewrite _cairo_xlib_surface_set_clip_region.
> 
> I don't claim to understand exactly why the code was doing what
> it was doing before (changing graphics exposures???) but I think
> this should be better.
> 
> Major changes:
> 
>  - It unsets the clip using XSetClipMask()/XRenderChangePicture()
>    rather than by creating a single rectangle the size of the 
>    surface.
> 
>  - It makes set_clip_region(surface, [<empty list of rectangles>])
>    completely clip drawing rather than being a no-op.
> 
>  - It uses XRenderSetPictureClipRectangles() to avoid creating
>    an X Region.

Committed.

					Owen

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050315/494e0dbd/attachment.pgp


More information about the cairo mailing list