Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
3d819f9c
Commit
3d819f9c
authored
Apr 09, 2009
by
Rémi Denis-Courmont
Committed by
Rémi Denis-Courmont
Apr 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xcb_window: implement VOUT_SET_SIZE
parent
5bddd2df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
modules/video_output/xcb/window.c
modules/video_output/xcb/window.c
+24
-3
No files found.
modules/video_output/xcb/window.c
View file @
3d819f9c
...
...
@@ -197,11 +197,32 @@ static void *Thread (void *data)
return
NULL
;
}
#include <vlc_vout.h>
static
int
Control
(
vout_window_t
*
wnd
,
int
cmd
,
va_list
ap
)
{
msg_Err
(
wnd
,
"request %d not implemented"
,
cmd
);
(
void
)
ap
;
return
VLC_EGENERIC
;
vout_window_sys_t
*
p_sys
=
wnd
->
p_sys
;
xcb_connection_t
*
conn
=
p_sys
->
conn
;
switch
(
cmd
)
{
case
VOUT_SET_SIZE
:
{
unsigned
width
=
va_arg
(
ap
,
unsigned
);
unsigned
height
=
va_arg
(
ap
,
unsigned
);
const
uint32_t
values
[]
=
{
width
,
height
,
};
xcb_configure_window
(
conn
,
wnd
->
handle
.
xid
,
XCB_CONFIG_WINDOW_WIDTH
|
XCB_CONFIG_WINDOW_HEIGHT
,
values
);
xcb_flush
(
conn
);
break
;
}
default:
msg_Err
(
wnd
,
"request %d not implemented"
,
cmd
);
return
VLC_EGENERIC
;
}
return
VLC_SUCCESS
;
}
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