[vlc-devel] commit: XCB-X11: handle 32-bits visuals (ARGB) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Nov 15 19:04:50 CET 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 15 20:03:44 2009 +0200| [b807e7efe650036777136bda1dd548a7421437e2] | committer: Rémi Denis-Courmont
XCB-X11: handle 32-bits visuals (ARGB)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b807e7efe650036777136bda1dd548a7421437e2
---
modules/video_output/xcb/x11.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/modules/video_output/xcb/x11.c b/modules/video_output/xcb/x11.c
index c2fa7e0..d949766 100644
--- a/modules/video_output/xcb/x11.c
+++ b/modules/video_output/xcb/x11.c
@@ -190,6 +190,11 @@ static int Open (vlc_object_t *obj)
/* Check that the pixmap format is supported by VLC. */
switch (fmt->depth)
{
+ case 32:
+ if (fmt->bits_per_pixel != 32)
+ continue;
+ fmt_pic.i_chroma = VLC_CODEC_RGB32; /* ARGB, we ignore alpha */
+ break;
case 24:
if (fmt->bits_per_pixel == 32)
fmt_pic.i_chroma = VLC_CODEC_RGB32;
More information about the vlc-devel
mailing list