From a7d61f290c687f28ad7b603400f7df2dfd2c5d0e Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 22 Oct 2003 07:08:02 +0000 Subject: Don't start pixmaps differing from root format in off-screen memory --- hw/kdrive/src/kaa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/kdrive/src/kaa.c b/hw/kdrive/src/kaa.c index b4891fa03..ff6be8a35 100644 --- a/hw/kdrive/src/kaa.c +++ b/hw/kdrive/src/kaa.c @@ -278,7 +278,8 @@ kaaCreatePixmap(ScreenPtr pScreen, int w, int h, int depth) pKaaPixmap->score = 0; pKaaPixmap->area = NULL; - if ((pPixmap->devKind * h) >= MIN_OFFPIX_SIZE) + if (depth == pScreen->rootDepth && + (pPixmap->devKind * h) >= MIN_OFFPIX_SIZE) kaaPixmapAllocArea (pPixmap); return pPixmap; } -- cgit v1.2.3