Commit 547026ca authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB: fill in RGB mask information

parent 4c06a308
...@@ -202,6 +202,12 @@ static int Open (vlc_object_t *obj) ...@@ -202,6 +202,12 @@ static int Open (vlc_object_t *obj)
goto error; goto error;
} }
vout->fmt_out.i_chroma = vout->output.i_chroma; vout->fmt_out.i_chroma = vout->output.i_chroma;
if (!gray)
{
vout->output.i_rmask = vt->red_mask;
vout->output.i_gmask = vt->green_mask;
vout->output.i_bmask = vt->blue_mask;
}
/* Create colormap (needed to select non-default visual) */ /* Create colormap (needed to select non-default visual) */
p_sys->cmap = xcb_generate_id (p_sys->conn); p_sys->cmap = xcb_generate_id (p_sys->conn);
......
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