Commit 1e817045 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vout: remove unused x/y settings in window configuration

parent 0ad998bd
......@@ -96,8 +96,6 @@ static int Control (vout_display_t *, int, va_list);
static vout_window_t *MakeWindow (vout_display_t *vd)
{
vout_window_cfg_t cfg = {
.x = var_InheritInteger (vd, "video-x"),
.y = var_InheritInteger (vd, "video-y"),
.width = vd->cfg->display.width,
.height = vd->cfg->display.height,
};
......
......@@ -180,8 +180,6 @@ static void PMThread( void *arg )
wnd_cfg.is_standalone = false;
wnd_cfg.type = VOUT_WINDOW_TYPE_HWND;
wnd_cfg.x = var_InheritInteger(vd, "video-x");
wnd_cfg.y = var_InheritInteger(vd, "video-y");
wnd_cfg.width = vd->cfg->display.width;
wnd_cfg.height = vd->cfg->display.height;
......
......@@ -687,8 +687,6 @@ static int Win32VoutCreateWindow( event_thread_t *p_event )
#endif
vout_window_cfg_t wnd_cfg = {
.type = VOUT_WINDOW_TYPE_HWND,
.x = p_event->x,
.y = p_event->y,
.width = p_event->width,
.height = p_event->height,
};
......
......@@ -133,8 +133,6 @@ vout_window_t *XCB_parent_Create (vout_display_t *vd,
{
vout_window_cfg_t cfg = {
.type = VOUT_WINDOW_TYPE_XID,
.x = var_InheritInteger (vd, "video-x"),
.y = var_InheritInteger (vd, "video-y"),
.width = vd->cfg->display.width,
.height = vd->cfg->display.height,
};
......
......@@ -361,7 +361,7 @@ static int Open( vlc_object_t *p_this )
p_cfg->fmt.i_height = p_output->i_height;
p_cfg->fmt.i_sar_num = (int64_t)i_aspect * i_target_height;
p_cfg->fmt.i_sar_den = VOUT_ASPECT_FACTOR * i_target_width;
p_cfg->window.i_x = p_output->i_left; /* FIXME relative to video-x/y (TODO in wrapper.c) ? */
p_cfg->window.i_x = p_output->i_left;
p_cfg->window.i_y = p_output->i_top;
p_cfg->window.i_align = p_output->i_align;
p_cfg->psz_module = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment