[xserver-commit] xserver/fb fbcmap.c,1.9,1.10
Keith Packard
xserver-commit@pdx.freedesktop.org
Thu, 15 Jan 2004 00:53:47 -0800
Committed by: keithp
Update of /cvs/xserver/xserver/fb
In directory pdx:/tmp/cvs-serv2073/fb
Modified Files:
fbcmap.c
Log Message:
2004-01-15 Keith Packard <keithp@keithp.com>
* composite/compinit.c: (compAddArgbVisual):
* dix/colormap.c:
* fb/fbcmap.c: (fbInitVisuals):
* include/scrnintstr.h:
Add alphaMask to visual so that pixel allocations for ARGB
visuals can include an opaque pixel value.
Index: fbcmap.c
===================================================================
RCS file: /cvs/xserver/xserver/fb/fbcmap.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- fbcmap.c 2 Nov 2003 19:56:10 -0000 1.9
+++ fbcmap.c 15 Jan 2004 08:53:45 -0000 1.10
@@ -525,6 +525,10 @@
visual->ColormapEntries = 1 << d;
visual->nplanes = d;
visual->vid = *vid = FakeClientID (0);
+#ifdef COMPOSITE
+ visual->alphaMask = 0;
+ visual->offsetAlpha = 0;
+#endif
switch (visual->class) {
case PseudoColor:
case GrayScale: