]> git.sesse.net Git - vlc/commitdiff
XCB-X11: use RGBA so we warranty the alpha channel is 0xff
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 15 Nov 2009 19:39:47 +0000 (21:39 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 15 Nov 2009 19:42:25 +0000 (21:42 +0200)
N.B.: it seems swscale does not follow the RGB masks properly;
red and blue are swapped.

modules/video_output/xcb/x11.c

index d9497666550206f70e4e032456ea48d3610986be..997c62be1b39defddc6aebe9413e1aaed8bf6bfb 100644 (file)
@@ -193,7 +193,7 @@ static int Open (vlc_object_t *obj)
           case 32:
             if (fmt->bits_per_pixel != 32)
                 continue;
-            fmt_pic.i_chroma = VLC_CODEC_RGB32; /* ARGB, we ignore alpha */
+            fmt_pic.i_chroma = VLC_CODEC_RGBA;
             break;
           case 24:
             if (fmt->bits_per_pixel == 32)