[vlc-commits] vout: win32: use the client dimension directly to set the internal Window position

Steve Lhomme git at videolan.org
Tue Aug 25 09:09:32 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Aug 25 08:17:25 2020 +0200| [1308baeb8b1b79062d2167bbb3b265be3367e700] | committer: Steve Lhomme

vout: win32: use the client dimension directly to set the internal Window position

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1308baeb8b1b79062d2167bbb3b265be3367e700
---

 modules/video_output/win32/common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index f9b9674dad..df02ea9e8d 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -160,8 +160,8 @@ int CommonControl(vout_display_t *vd, display_win32_area_t *area, vout_display_s
             area->vdcfg.display.height = RECTHeight(clientRect);
 
             SetWindowPos(sys->hvideownd, 0, 0, 0,
-                         area->vdcfg.display.width,
-                         area->vdcfg.display.height, SWP_NOZORDER|SWP_NOMOVE|SWP_NOACTIVATE);
+                         RECTWidth(clientRect),
+                         RECTHeight(clientRect), SWP_NOZORDER|SWP_NOMOVE|SWP_NOACTIVATE);
         }
 #endif /* !VLC_WINSTORE_APP */
         CommonPlacePicture(vd, area, sys);



More information about the vlc-commits mailing list