]> git.sesse.net Git - vlc/commitdiff
XCB-X11: handle 32-bits visuals (ARGB)
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 15 Nov 2009 18:03:44 +0000 (20:03 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 15 Nov 2009 18:04:47 +0000 (20:04 +0200)
modules/video_output/xcb/x11.c

index c2fa7e0ed2f4650b1cca5dd57375592a7f68077d..d9497666550206f70e4e032456ea48d3610986be 100644 (file)
@@ -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;