[xserver-commit] xserver/hw/kdrive/src kaa.c,1.14.2.3,1.14.2.4
Keith Packard
xserver-commit@pdx.freedesktop.org
Wed, 22 Oct 2003 00:08:04 -0700
Committed by: keithp
Update of /cvs/xserver/xserver/hw/kdrive/src
In directory pdx:/tmp/cvs-serv18958/hw/kdrive/src
Modified Files:
Tag: xfixes_2_branch
kaa.c
Log Message:
* hw/kdrive/src/kaa.c: (kaaCreatePixmap):
Don't start pixmaps differing from root format in off-screen memory
Index: kaa.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/src/kaa.c,v
retrieving revision 1.14.2.3
retrieving revision 1.14.2.4
diff -u -d -r1.14.2.3 -r1.14.2.4
--- kaa.c 22 Oct 2003 06:52:44 -0000 1.14.2.3
+++ kaa.c 22 Oct 2003 07:08:02 -0000 1.14.2.4
@@ -278,7 +278,8 @@
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;
}