diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-15 00:49:39 +0100 |
---|---|---|
committer | Owain G. Ainsworth <oga@openbsd.org> | 2010-05-17 20:39:46 +0100 |
commit | 12366facf20e5c9bdb10704dd28e6614c1d0c85a (patch) | |
tree | 9eb1932894f3d1569f97be1fa32d01621eaa92a1 | |
parent | 416a450d1ffdbf8838a68b898320d7d667ed8623 (diff) |
uxa: Only use 1x1R as a solid with an opaque format or SRC
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
(cherry picked from commit 82d07fdf10cac2211af74ebf7d519daacd7084c0)
Signed-off-by: Owain G. Ainsworth <oga@openbsd.org>
-rw-r--r-- | uxa/uxa-render.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c index a0e655b6..793efa71 100644 --- a/uxa/uxa-render.c +++ b/uxa/uxa-render.c @@ -1382,7 +1382,8 @@ uxa_composite(CARD8 op, } } else if (pSrc->pDrawable->width == 1 && pSrc->pDrawable->height == 1 && - pSrc->repeat) { + pSrc->repeat && + (op == PictOpSrc || (op == PictOpOver && !PICT_FORMAT_A(pSrc->format)))) { ret = uxa_try_driver_solid_fill(pSrc, pDst, xSrc, ySrc, xDst, yDst, |