[vlc-devel] commit: msw : support for vout_window_SetFullscreen (Erwan Tulou )
git version control
git at videolan.org
Mon Dec 28 10:14:49 CET 2009
vlc | branch: master | Erwan Tulou <erwan10 at videolan.org> | Thu Dec 24 11:43:10 2009 +0100| [b7d1960fc01e8dd8aadeb8da42e1333e86d429ab] | committer: 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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7d1960fc01e8dd8aadeb8da42e1333e86d429ab
---
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 cc392ce..196af7f 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 0f0f9ec..07841c3 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 )
{
More information about the vlc-devel
mailing list