diff options
Diffstat (limited to 'src/savage_video.c')
-rw-r--r-- | src/savage_video.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/savage_video.c b/src/savage_video.c index a68c191..56ced56 100644 --- a/src/savage_video.c +++ b/src/savage_video.c @@ -1840,6 +1840,16 @@ SavageDisplayVideo2000( #endif } +static void +SavageFillKeyHelper(DrawablePtr pDraw, uint32_t colorKey, RegionPtr clipBoxes) +{ +#if HAVE_XV_DRAWABLE_HELPER + xf86XVFillKeyHelperDrawable(pDraw, colorKey, clipBoxes); +#else + xf86XVFillKeyHelper(pDraw->pScreen, colorKey, clipBoxes); +#endif +} + static int SavagePutImage( ScrnInfoPtr pScrn, @@ -1988,7 +1998,7 @@ SavagePutImage( if(!REGION_EQUAL(pScreen, &pPriv->clip, clipBoxes)) { REGION_COPY(pScreen, &pPriv->clip, clipBoxes); /* draw these */ - xf86XVFillKeyHelper(pScrn->pScreen, pPriv->colorKey, clipBoxes); + SavageFillKeyHelper(pDraw, pPriv->colorKey, clipBoxes); } |