Commit 2f5e98e2 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB-X11: use RGBA so we warranty the alpha channel is 0xff

N.B.: it seems swscale does not follow the RGB masks properly;
red and blue are swapped.
parent b807e7ef
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment