diff options
Diffstat (limited to 'xserver/Xext/shm.c')
-rw-r--r-- | xserver/Xext/shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xserver/Xext/shm.c b/xserver/Xext/shm.c index 4141a8fe6..d2ae08772 100644 --- a/xserver/Xext/shm.c +++ b/xserver/Xext/shm.c @@ -482,7 +482,7 @@ doShmPutImage(DrawablePtr dst, GCPtr pGC, { PixmapPtr pPixmap; - if (format == ZPixmap || depth == 1) { + if (format == ZPixmap || (format == XYPixmap && depth == 1)) { pPixmap = GetScratchPixmapHeader(dst->pScreen, w, h, depth, BitsPerPixel(depth), PixmapBytePad(w, depth), |