Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
1640:5eaab017cc28 | 1641:5cf11b00b900 |
---|---|
618 XFree(modelist); | 618 XFree(modelist); |
619 } | 619 } |
620 #endif /* SDL_VIDEO_DRIVER_X11_XME */ | 620 #endif /* SDL_VIDEO_DRIVER_X11_XME */ |
621 | 621 |
622 { | 622 { |
623 /* It's interesting to note that if we allow 32 bit depths, | |
624 we get a visual with an alpha mask on composite servers. | |
623 static int depth_list[] = { 32, 24, 16, 15, 8 }; | 625 static int depth_list[] = { 32, 24, 16, 15, 8 }; |
626 */ | |
627 static int depth_list[] = { 24, 16, 15, 8 }; | |
624 int j, np; | 628 int j, np; |
625 int use_directcolor = 1; | 629 int use_directcolor = 1; |
626 XPixmapFormatValues *pf; | 630 XPixmapFormatValues *pf; |
627 | 631 |
628 /* Search for the visuals in deepest-first order, so that the first | 632 /* Search for the visuals in deepest-first order, so that the first |