diff options
author | Maarten Maathuis <madman2003@gmail.com> | 2009-02-06 20:56:49 +0100 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2009-02-07 21:58:17 +0100 |
commit | 00226d0b589595cdd45c75e7e28237334a8883b1 (patch) | |
tree | ea97aa19cff1c9afb3d7f7b8e3a8e7bef94751b5 /mi/miexpose.c | |
parent | ffa72793e25f19a388a1369708f472921f721284 (diff) |
mi: clip exposures to pGC->clientClip.
Diffstat (limited to 'mi/miexpose.c')
-rw-r--r-- | mi/miexpose.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mi/miexpose.c b/mi/miexpose.c index d56d18758..082f90677 100644 --- a/mi/miexpose.c +++ b/mi/miexpose.c @@ -254,6 +254,10 @@ miHandleExposures(DrawablePtr pSrcDrawable, DrawablePtr pDstDrawable, /* intersect with visible areas of dest */ REGION_INTERSECT(pscr, &rgnExposed, &rgnExposed, prgnDstClip); + /* intersect with client clip region. */ + if (pGC->clientClipType == CT_REGION) + REGION_INTERSECT(pscr, &rgnExposed, &rgnExposed, pGC->clientClip); + /* * If we have LOTS of rectangles, we decide to take the extents * and force an exposure on that. This should require much less |