[vlc-devel] [PATCH] qt: fix autoresize on windows

Pierre Lamot pierre at videolabs.io
Mon Nov 13 17:25:46 CET 2017


---
 modules/gui/qt/main_interface_win32.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt/main_interface_win32.cpp b/modules/gui/qt/main_interface_win32.cpp
index ffa46760e8..8e5f1b8c59 100644
--- a/modules/gui/qt/main_interface_win32.cpp
+++ b/modules/gui/qt/main_interface_win32.cpp
@@ -383,8 +383,8 @@ void MainInterfaceWin32::resizeEvent(QResizeEvent *event)
         return;
 
     OffsetRect( &windowRect,
-                monitorInfo.rcWork.left - monitorInfo.rcMonitor.left,
-                monitorInfo.rcWork.top - monitorInfo.rcMonitor.top );
+                monitorInfo.rcMonitor.left - monitorInfo.rcWork.left ,
+                monitorInfo.rcMonitor.top - monitorInfo.rcWork.top );
 
     b_isWindowTiled = ( EqualRect( &windowPlacement.rcNormalPosition, &windowRect ) == 0 );
 }
-- 
2.14.1



More information about the vlc-devel mailing list