From 7798f3abce3f6aaafd4864148aafbad9d3bc343d Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Fri, 29 May 2009 13:10:47 -0700 Subject: [PATCH] fb: Use the correct planemask in fbFillRegionTiled. --- fb/fbwindow.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/fb/fbwindow.c b/fb/fbwindow.c index a5cfc34ad..e94385313 100644 --- a/fb/fbwindow.c +++ b/fb/fbwindow.c @@ -282,11 +282,7 @@ fbFillRegionTiled (DrawablePtr pDrawable, BoxPtr pbox = REGION_RECTS(pRegion); int xRot = pDrawable->x; int yRot = pDrawable->y; -#ifdef ROOTLESS_SAFEALPHA - FbBits planeMask = FB_ALLONES & ~RootlessAlphaMask(dstBpp); -#else - FbBits planeMask = FB_ALLONES; -#endif + FbBits planeMask; #ifdef PANORAMIX if(!noPanoramiXExtension) @@ -305,6 +301,12 @@ fbFillRegionTiled (DrawablePtr pDrawable, tileHeight = pTile->drawable.height; xRot += dstXoff; yRot += dstYoff; + +#ifdef ROOTLESS_SAFEALPHA + planeMask = FB_ALLONES & ~RootlessAlphaMask(dstBpp); +#else + planeMask = FB_ALLONES; +#endif while (n--) {