summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2005-10-25 22:35:24 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2005-10-25 22:35:24 +0000
commit63e9c3f2c3cc510c8907666480158db8b7db7b04 (patch)
tree068e1ad9e7aa2faf7cb931cc411acc8b6b412740
parent0eef0af4120a93a19e746d70ddb0a0be96b9ce38 (diff)
Revert previous commit.
-rw-r--r--src/via_video.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/via_video.c b/src/via_video.c
index 78fc00e..bbed666 100644
--- a/src/via_video.c
+++ b/src/via_video.c
@@ -1101,10 +1101,12 @@ viaPutImage(
pVia->VideoStatus |= VIDEO_SWOV_ON;
/* BitBlt: Draw the colorkey rectangle */
- REGION_COPY(pScrn->pScreen, &pPriv->clip, clipBoxes);
- if (pPriv->autoPaint)
- xf86XVFillKeyHelper(pScrn->pScreen, pPriv->colorKey, clipBoxes);
-
+ if(!RegionsEqual(&pPriv->clip, clipBoxes)) {
+ REGION_COPY(pScrn->pScreen, &pPriv->clip, clipBoxes);
+ if (pPriv->autoPaint)
+ xf86XVFillKeyHelper(pScrn->pScreen, pPriv->colorKey, clipBoxes);
+ }
+
/*
* Update video overlay
*/