diff src/video/x11/SDL_x11modes.c @ 1641:5cf11b00b900

Fixed bug #197 On servers with the composite extension enabled, visuals with 32-bit depth have an alpha mask. This is pretty neat, but SDL needs a bit more work to handle these properly, so for now, we'll just use 24 bit depth visuals.
author Sam Lantinga <slouken@libsdl.org>
date Mon, 17 Apr 2006 04:54:08 +0000
parents 34cca785be57
children e49147870aac a0ddae8b43cf
line wrap: on
line diff
--- a/src/video/x11/SDL_x11modes.c	Mon Apr 17 03:58:29 2006 +0000
+++ b/src/video/x11/SDL_x11modes.c	Mon Apr 17 04:54:08 2006 +0000
@@ -620,7 +620,11 @@
 #endif /* SDL_VIDEO_DRIVER_X11_XME */
 
     {
+	/* It's interesting to note that if we allow 32 bit depths,
+	   we get a visual with an alpha mask on composite servers.
         static int depth_list[] = { 32, 24, 16, 15, 8 };
+	*/
+        static int depth_list[] = { 24, 16, 15, 8 };
         int j, np;
         int use_directcolor = 1;
         XPixmapFormatValues *pf;