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 /render/mirect.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 'render/mirect.c')
-rw-r--r-- | render/mirect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/mirect.c b/render/mirect.c index 4e76972d1..a36d1d6e3 100644 --- a/render/mirect.c +++ b/render/mirect.c @@ -54,7 +54,7 @@ miColorRects(PicturePtr pDst, tmpval[1].val = pixel; tmpval[2].val = pDst->subWindowMode; mask = GCFunction | GCForeground | GCSubwindowMode; - if (pClipPict->clientClipType == CT_REGION) { + if (pClipPict->clientClip) { tmpval[3].val = pDst->clipOrigin.x - xoff; tmpval[4].val = pDst->clipOrigin.y - yoff; mask |= GCClipXOrigin | GCClipYOrigin; |