]> git.sesse.net Git - vlc/commitdiff
msw : support for vout_window_SetFullscreen
authorErwan Tulou <erwan10@videolan.org>
Thu, 24 Dec 2009 10:43:10 +0000 (11:43 +0100)
committerErwan Tulou <erwan10@videolan.org>
Mon, 28 Dec 2009 09:13:47 +0000 (10:13 +0100)
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
modules/video_output/msw/common_vo.c

index cc392ceb29e0311e1007cdec27e82e6e4917ae6c..196af7f6fd1b63d317f181a8375560955e8d7e73 100644 (file)
@@ -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;
 
index 0f0f9ec45f601abe49cce0d7b3817e28585b83dc..07841c304eee83fcd581fcca55a5ffc8ec989110 100644 (file)
@@ -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 )
     {