diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-09-08 15:25:19 +0200 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-09-08 15:25:19 +0200 |
commit | d3ad1804a5216487b5837a80f3e53b81212dcf84 (patch) | |
tree | a2b41b9311862e71f7744ff35b03c06370efbecf /exa | |
parent | a9d30f6a038166052a4684308db205bd4e60799e (diff) |
EXA: Only take special code path for 1x1 fill for pixmaps.
It doesn't make sense for windows.
Also double-check that the data pointer is valid.
Fixes http://bugs.freedesktop.org/show_bug.cgi?id=23461 (not sure that could
happen on master even without this, but just in case)
Diffstat (limited to 'exa')
-rw-r--r-- | exa/exa_accel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/exa/exa_accel.c b/exa/exa_accel.c index 33fbb9843..7e2dd7079 100644 --- a/exa/exa_accel.c +++ b/exa/exa_accel.c @@ -1018,6 +1018,7 @@ exaFillRegionSolid (DrawablePtr pDrawable, RegionPtr pRegion, Pixel pixel, exaMarkSync(pDrawable->pScreen); if (pExaPixmap->pDamage && + pExaPixmap->sys_ptr && pDrawable->type == DRAWABLE_PIXMAP && pDrawable->width == 1 && pDrawable->height == 1 && pDrawable->bitsPerPixel != 24) { ExaPixmapPriv(pPixmap); |