From b7d1960fc01e8dd8aadeb8da42e1333e86d429ab Mon Sep 17 00:00:00 2001 From: Erwan Tulou Date: Thu, 24 Dec 2009 11:43:10 +0100 Subject: [PATCH] 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 --- modules/video_output/msw/common.c | 2 +- modules/video_output/msw/common_vo.c | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c index cc392ceb29..196af7f6fd 100644 --- a/modules/video_output/msw/common.c +++ b/modules/video_output/msw/common.c @@ -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; diff --git a/modules/video_output/msw/common_vo.c b/modules/video_output/msw/common_vo.c index 0f0f9ec45f..07841c304e 100644 --- a/modules/video_output/msw/common_vo.c +++ b/modules/video_output/msw/common_vo.c @@ -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 ) { -- 2.39.2