Commit b7d1960f authored by Erwan Tulou's avatar Erwan Tulou

msw : support for vout_window_SetFullscreen

This patch opts for the new vout_window_SetFullscreen when a vout window
provider is available and keeps on the old way otherwise
parent bd99a2e1
......@@ -155,7 +155,7 @@ void CommonManage(vout_display_t *vd)
/* If we do not control our window, we check for geometry changes
* ourselves because the parent might not send us its events. */
if (sys->hparent && !vd->cfg->is_fullscreen) {
if (sys->hparent) {
RECT rect_parent;
POINT point;
......
......@@ -142,7 +142,7 @@ void CommonManage( vout_thread_t *p_vout )
{
/* If we do not control our window, we check for geometry changes
* ourselves because the parent might not send us its events. */
if( p_vout->p_sys->hparent && !p_vout->b_fullscreen )
if( p_vout->p_sys->hparent )
{
RECT rect_parent;
POINT point;
......@@ -606,6 +606,13 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout )
p_vout->b_fullscreen = ! p_vout->b_fullscreen;
if( p_vout->p_sys->parent_window )
{
vout_window_SetFullScreen( p_vout->p_sys->parent_window,
p_vout->b_fullscreen );
return;
}
/* We want to go to Fullscreen */
if( p_vout->b_fullscreen )
{
......
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