diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2006-10-15 17:05:02 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2006-10-15 17:05:02 +0200 |
commit | 2933140b5f1f8a6e270460d8918a14943bd0f174 (patch) | |
tree | db0ace6b7daff8dada9310d9ab6d3ba348dba76f /src | |
parent | 4edbfb9eb952f9b3f5f597749192c17baf15cdce (diff) |
radeon: Use xf86XVFillKeyHelperDrawable() when available.
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_video.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c index b03f8de..d4e1f0a 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -2696,6 +2696,17 @@ RADEONDisplayVideo( } +static void +RADEONFillKeyHelper(DrawablePtr pDraw, CARD32 colorKey, RegionPtr clipBoxes) +{ +#if HAVE_XV_DRAWABLE_HELPER + xf86XVFillKeyHelperDrawable(pDraw, colorKey, clipBoxes); +#else + xf86XVFillKeyHelper(pDraw->pScreen, colorKey, clipBoxes); +#endif +} + + static int RADEONPutImage( ScrnInfoPtr pScrn, @@ -2870,7 +2881,7 @@ RADEONPutImage( REGION_COPY(pScrn->pScreen, &pPriv->clip, clipBoxes); /* draw these */ if(pPriv->autopaint_colorkey) - xf86XVFillKeyHelper(pScrn->pScreen, pPriv->colorKey, clipBoxes); + RADEONFillKeyHelper(pDraw, pPriv->colorKey, clipBoxes); } RADEONDisplayVideo(pScrn, pPriv, id, offset, offset, offset, offset, width, height, dstPitch, @@ -3416,7 +3427,7 @@ RADEONPutVideo( REGION_COPY(pScreen, &pPriv->clip, clipBoxes); /* draw these */ if(pPriv->autopaint_colorkey) - xf86XVFillKeyHelper(pScrn->pScreen, pPriv->colorKey, clipBoxes); + RADEONFillKeyHelper(pDraw, pPriv->colorKey, clipBoxes); } RADEONDisplayVideo(pScrn, pPriv, id, offset1+top*srcPitch, offset2+top*srcPitch, offset3+top*srcPitch, offset4+top*srcPitch, width, height, dstPitch*mult/2, |