mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 18:08:03 +02:00
image: Only discard the outer boxes
This is necessary as the callers do not propagate the clip extents after finding the singular clip path. *sigh* Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
ebe665867c
commit
41b5469b95
1 changed files with 5 additions and 4 deletions
|
|
@ -3211,13 +3211,14 @@ _clip_get_single_path (cairo_clip_t *clip)
|
|||
cairo_clip_path_t *iter = clip->path;
|
||||
cairo_clip_path_t *path = NULL;
|
||||
|
||||
/* Boxes only effect the extents, so discard any outer boxes. */
|
||||
do {
|
||||
if ((iter->flags & CAIRO_CLIP_PATH_IS_BOX) == 0) {
|
||||
if (path != NULL)
|
||||
return FALSE;
|
||||
if (path != NULL)
|
||||
return FALSE;
|
||||
|
||||
if ((iter->flags & CAIRO_CLIP_PATH_IS_BOX) == 0)
|
||||
path = iter;
|
||||
}
|
||||
|
||||
iter = iter->prev;
|
||||
} while (iter != NULL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue