[vlc-commits] win32 vout: Don't account for a container when computing full screen size
    Hugo Beauzée-Luyssen 
    git at videolan.org
       
    Wed Jun 14 14:49:12 CEST 2017
    
    
  
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jun 13 18:29:30 2017 +0200| [0df835af8fbe94972d11339e6153036f6ba72fa9] | committer: Hugo Beauzée-Luyssen
win32 vout: Don't account for a container when computing full screen size
This fixes toggling fullscreen when video isn't embedded on a multi
monitor setup
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0df835af8fbe94972d11339e6153036f6ba72fa9
---
 modules/video_output/win32/common.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index c7bc1d9b1b..ffd5e49a1e 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -622,10 +622,12 @@ int CommonControl(vout_display_t *vd, int query, va_list args)
             .bottom = cfg->display.height,
         };
 
-        AdjustWindowRect(&rect_window, EventThreadGetWindowStyle(sys->event), 0);
-        SetWindowPos(sys->hwnd, 0, 0, 0,
-                     rect_window.right - rect_window.left,
-                     rect_window.bottom - rect_window.top, SWP_NOMOVE);
+        if (!cfg->is_fullscreen) {
+            AdjustWindowRect(&rect_window, EventThreadGetWindowStyle(sys->event), 0);
+            SetWindowPos(sys->hwnd, 0, 0, 0,
+                         rect_window.right - rect_window.left,
+                         rect_window.bottom - rect_window.top, SWP_NOMOVE);
+        }
         UpdateRects(vd, cfg, NULL, false);
         return VLC_SUCCESS;
     }
    
    
More information about the vlc-commits
mailing list