[vlc-devel] commit: XCB: fill in RGB mask information ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Feb 7 22:50:26 CET 2009


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Feb  7 23:50:14 2009 +0200| [547026ca2c863f234acd7e142e4e0f744b3391c8] | committer: Rémi Denis-Courmont 

XCB: fill in RGB mask information

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=547026ca2c863f234acd7e142e4e0f744b3391c8
---

 modules/video_output/xcb/xcb.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/video_output/xcb/xcb.c b/modules/video_output/xcb/xcb.c
index 33101e8..19a9bf0 100644
--- a/modules/video_output/xcb/xcb.c
+++ b/modules/video_output/xcb/xcb.c
@@ -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);




More information about the vlc-devel mailing list