XCB: fill in RGB mask information
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 7 Feb 2009 21:50:14 +0000 (23:50 +0200)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sat, 7 Feb 2009 21:50:14 +0000 (23:50 +0200)
modules/video_output/xcb/xcb.c

index 33101e8..19a9bf0 100644 (file)
@@ -202,6 +202,12 @@ static int Open (vlc_object_t *obj)
             goto error;
     }
     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) */
     p_sys->cmap = xcb_generate_id (p_sys->conn);