[vlc-commits] Fix background color in windowless mode
Ludovic Fauvet
git at videolan.org
Sat Dec 22 15:18:35 CET 2012
npapi-vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Sat Dec 22 15:10:03 2012 +0100| [afcdf2b27c48d0c8236be3684655abe1cdd01e75] | committer: Ludovic Fauvet
Fix background color in windowless mode
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=afcdf2b27c48d0c8236be3684655abe1cdd01e75
---
npapi/vlcwindowless_xcb.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/npapi/vlcwindowless_xcb.cpp b/npapi/vlcwindowless_xcb.cpp
index 7af93dd..e035eb2 100644
--- a/npapi/vlcwindowless_xcb.cpp
+++ b/npapi/vlcwindowless_xcb.cpp
@@ -70,8 +70,8 @@ void VlcWindowlessXCB::drawBackground(xcb_drawable_t drawable)
/* Prepare to fill the background */
xcb_gcontext_t background = xcb_generate_id(m_conn);
- uint32_t mask = XCB_GC_BACKGROUND | XCB_GC_GRAPHICS_EXPOSURES;
- uint32_t values[2] = {0, colorpixel};
+ uint32_t mask = XCB_GC_FOREGROUND | XCB_GC_GRAPHICS_EXPOSURES;
+ uint32_t values[2] = {colorpixel, 0};
xcb_create_gc(m_conn, background, drawable, mask, values);
xcb_rectangle_t rect;
rect.x = 0;
More information about the vlc-commits
mailing list