[cairo] [PATCH 2/3] image: Proper handling of clip in _composite_boxes()

Taekyun Kim podain77 at gmail.com
Tue Jun 21 00:23:49 PDT 2011


We cannot assume that given boxes are already clipped within clip
region even when clip_region contains single rectangle. So if we
have single rectangle clip_region, we have to manually clip boxes
within the clip rectangle so that we can make clip region to NULL.

And if clip_region is not NULL (means multiple clip rectangles),
we should handle this. But previous code did not handle this
correctly. This patch fixes this too.
---
 src/cairo-image-surface.c |   51 +++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 49 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-image-Proper-handling-of-clip-in-_composite_boxes.patch
Type: text/x-patch
Size: 2917 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110621/17f5da9f/attachment.bin>


More information about the cairo mailing list