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

window: inline vout_display_window_Attach()

parent 50629def
......@@ -115,7 +115,8 @@ static vout_display_t *vout_display_New(vlc_object_t *obj,
}
if (cfg->window != NULL)
vout_display_window_Attach(cfg->window, vd);
vout_window_SetSize(cfg->window,
cfg->display.width, cfg->display.height);
return vd;
}
......
......@@ -244,16 +244,6 @@ vout_window_t *vout_display_window_New(vout_thread_t *vout,
return window;
}
/**
* Attaches a window to a display. Window events will be dispatched to the
* display until they are detached.
*/
void vout_display_window_Attach(vout_window_t *window, vout_display_t *vd)
{
vout_window_SetSize(window,
vd->cfg->display.width, vd->cfg->display.height);
}
/**
* Destroys a video window.
* \note The window must be detached.
......
......@@ -20,5 +20,4 @@
vout_window_t *vout_display_window_New(vout_thread_t *,
const vout_window_cfg_t *);
void vout_display_window_Attach(vout_window_t *, vout_display_t *);
void vout_display_window_Delete(vout_window_t *);
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