Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
53752a74
Commit
53752a74
authored
Jun 01, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XCB/X11: support different color depth than parent window (refs #3581)
parent
3cfc015c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
modules/video_output/xcb/x11.c
modules/video_output/xcb/x11.c
+17
-1
No files found.
modules/video_output/xcb/x11.c
View file @
53752a74
...
...
@@ -249,9 +249,24 @@ static int Open (vlc_object_t *obj)
p_sys
->
window
=
xcb_generate_id
(
p_sys
->
conn
);
p_sys
->
gc
=
xcb_generate_id
(
p_sys
->
conn
);
xcb_pixmap_t
pixmap
=
xcb_generate_id
(
p_sys
->
conn
);
{
const
uint32_t
mask
=
XCB_CW_EVENT_MASK
|
XCB_CW_COLORMAP
;
const
uint32_t
mask
=
XCB_CW_BACK_PIXMAP
|
XCB_CW_BACK_PIXEL
|
XCB_CW_BORDER_PIXMAP
|
XCB_CW_BORDER_PIXEL
|
XCB_CW_EVENT_MASK
|
XCB_CW_COLORMAP
;
const
uint32_t
values
[]
=
{
/* XCB_CW_BACK_PIXMAP */
pixmap
,
/* XCB_CW_BACK_PIXEL */
scr
->
black_pixel
,
/* XCB_CW_BORDER_PIXMAP */
pixmap
,
/* XCB_CW_BORDER_PIXEL */
scr
->
black_pixel
,
/* XCB_CW_EVENT_MASK */
XCB_EVENT_MASK_VISIBILITY_CHANGE
,
/* XCB_CW_COLORMAP */
...
...
@@ -259,6 +274,7 @@ static int Open (vlc_object_t *obj)
};
xcb_void_cookie_t
c
;
xcb_create_pixmap
(
p_sys
->
conn
,
p_sys
->
depth
,
pixmap
,
scr
->
root
,
1
,
1
);
c
=
xcb_create_window_checked
(
p_sys
->
conn
,
p_sys
->
depth
,
p_sys
->
window
,
p_sys
->
embed
->
handle
.
xid
,
0
,
0
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment