summaryrefslogtreecommitdiff
path: root/exa/exa_accel.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-08-24 19:04:55 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-08-24 19:04:55 +0200
commitb9a806f0b3d495c7616b469281e5892ae7f3f6b3 (patch)
tree42151fe696dabbf95566418d440ec26433f04eea /exa/exa_accel.c
parentd0f0d1092c7587a02404e1db07740e6334462ba6 (diff)
exaPolyFillRect: pGC->alu doesn't matter with a single rectangle.
Diffstat (limited to 'exa/exa_accel.c')
-rw-r--r--exa/exa_accel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/exa/exa_accel.c b/exa/exa_accel.c
index 692f2b8c3..feedd49a2 100644
--- a/exa/exa_accel.c
+++ b/exa/exa_accel.c
@@ -702,8 +702,9 @@ exaPolyFillRect(DrawablePtr pDrawable,
* call exaFillRegion{Solid,Tiled}.
*/
if ((pGC->fillStyle == FillSolid || pGC->fillStyle == FillTiled) &&
- (pGC->alu == GXcopy || pGC->alu == GXclear || pGC->alu == GXnoop ||
- pGC->alu == GXcopyInverted || pGC->alu == GXset)) {
+ (nrect == 1 || pGC->alu == GXcopy || pGC->alu == GXclear ||
+ pGC->alu == GXnoop || pGC->alu == GXcopyInverted ||
+ pGC->alu == GXset)) {
if (((pGC->fillStyle == FillSolid || pGC->tileIsPixel) &&
exaFillRegionSolid(pDrawable, pReg, pGC->fillStyle == FillSolid ?
pGC->fgPixel : pGC->tile.pixel, pGC->planemask,