diff options
author | Adam Jackson <ajax@redhat.com> | 2014-10-08 17:20:33 +0200 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-10-23 14:35:49 -0700 |
commit | 462bf87c4d1c2211dd49a5ce62d01ff84ff33970 (patch) | |
tree | 397fba28721adaf3a3c4469a589d59072516bffb /fb/fbpict.c | |
parent | 3f4edd2e3ff84c38df563b09c2e8c32404db38f7 (diff) |
render: Always store client clip as a region
This does have one semantic change. FixesCreateRegionFromPicture used to
throw BadImplementation if you tried to create a region from a picture
with no client clip. I changed that to BadMatch here since that more
honestly describes what's going on.
Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'fb/fbpict.c')
-rw-r--r-- | fb/fbpict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fb/fbpict.c b/fb/fbpict.c index 21baf8950..f9c991774 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -326,7 +326,7 @@ create_bits_picture(PicturePtr pict, Bool has_clip, int *xoff, int *yoff) * only set the clip region for pictures with drawables */ if (has_clip) { - if (pict->clientClipType != CT_NONE) + if (pict->clientClip) pixman_image_set_has_client_clip(image, TRUE); if (*xoff || *yoff) |