[vlc-commits] qt: video_widget: Fetch the container widget size
    Hugo Beauzée-Luyssen 
    git at videolan.org
       
    Thu Jun  1 11:55:38 CEST 2017
    
    
  
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed May 31 16:37:43 2017 +0200| [d859efbf18047a75e3049bd5c150a04dab08ba44] | committer: Hugo Beauzée-Luyssen
qt: video_widget: Fetch the container widget size
This fixes occasional weird positioning of the video in the video widget on windows
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d859efbf18047a75e3049bd5c150a04dab08ba44
---
 modules/gui/qt/components/interface_widgets.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/gui/qt/components/interface_widgets.cpp b/modules/gui/qt/components/interface_widgets.cpp
index 7ca12a1efe..d483461cb5 100644
--- a/modules/gui/qt/components/interface_widgets.cpp
+++ b/modules/gui/qt/components/interface_widgets.cpp
@@ -202,7 +202,7 @@ QSize VideoWidget::physicalSize() const
     HWND hwnd;
     RECT rect;
 
-    QWindow *window = stable->windowHandle();
+    QWindow *window = windowHandle();
     hwnd = static_cast<HWND>(QGuiApplication::platformNativeInterface()->nativeResourceForWindow("handle", window));
 
     GetClientRect(hwnd, &rect);
    
    
More information about the vlc-commits
mailing list