[vlc-devel] commit: XCB window: set background color to black ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Feb 5 19:58:43 CET 2009
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Thu Feb 5 20:58:29 2009 +0200| [bfe80765bd0c7bab876e7e74b993dfcabc0dc935] | committer: Rémi Denis-Courmont
XCB window: set background color to black
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bfe80765bd0c7bab876e7e74b993dfcabc0dc935
---
modules/video_output/xcb/window.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/modules/video_output/xcb/window.c b/modules/video_output/xcb/window.c
index f5289c7..50cef9e 100644
--- a/modules/video_output/xcb/window.c
+++ b/modules/video_output/xcb/window.c
@@ -79,12 +79,17 @@ static int Open (vlc_object_t *obj)
/* Create window */
xcb_screen_t *scr = xcb_aux_get_screen (conn, snum);
+ const uint32_t mask = XCB_CW_BACK_PIXEL;
+ uint32_t values[1] = {
+ /* XCB_CW_BACK_PIXEL */
+ scr->black_pixel,
+ };
xcb_window_t window = xcb_generate_id (conn);
ck = xcb_create_window_checked (conn, scr->root_depth, window, scr->root,
0, 0, wnd->width, wnd->height, 0,
XCB_WINDOW_CLASS_INPUT_OUTPUT,
- scr->root_visual, 0, NULL);
+ scr->root_visual, mask, values);
err = xcb_request_check (conn, ck);
if (err)
{
More information about the vlc-devel
mailing list