From b9a806f0b3d495c7616b469281e5892ae7f3f6b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 24 Aug 2007 19:04:55 +0200 Subject: [PATCH] exaPolyFillRect: pGC->alu doesn't matter with a single rectangle. --- exa/exa_accel.c | 5 +++-- 1 file 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,