xserver/composite compinit.c,1.11,1.12

Keith Packard xserver-commit at pdx.freedesktop.org
Thu May 13 14:25:54 PDT 2004


Committed by: keithp

Update of /cvs/xserver/xserver/composite
In directory pdx:/tmp/cvs-serv18445/composite

Modified Files:
	compinit.c 
Log Message:
2004-05-13  Keith Packard  <keithp at keithp.com>

	* composite/compinit.c: (compAddArgbVisual):
	Follow GLX in setting ARGB visual nplanes to 24.
	
	* hw/kdrive/linux/mouse.c: (MouseRead):
	Retry current mouse protocol when sync is lost



Index: compinit.c
===================================================================
RCS file: /cvs/xserver/xserver/composite/compinit.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- a/compinit.c	15 Jan 2004 08:53:44 -0000	1.11
+++ b/compinit.c	13 May 2004 21:25:51 -0000	1.12
@@ -197,7 +197,9 @@
     visual->class = TrueColor;
     visual->bitsPerRGBValue = 8;
     visual->ColormapEntries = (1 << 8);
-    visual->nplanes = 32;
+    visual->nplanes = 24;   /* follow GLX and set this to just the bits
+			     * used for the RGB value, not A
+			     */
     visual->vid = cs->argbVid = FakeClientID (0);
     visual->redMask   = (((unsigned long) pPictFormat->direct.redMask) << 
 			 pPictFormat->direct.red);




More information about the xserver-commit mailing list