Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
3d819f9c
Commit
3d819f9c
authored
Apr 09, 2009
by
Rémi Denis-Courmont
Committed by
Rémi Denis-Courmont
Apr 09, 2009
Browse files
xcb_window: implement VOUT_SET_SIZE
parent
5bddd2df
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
0%
Try again
or
attach a new 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