[vlc-commits] vout:win32: simplify the test on zero output dimensions

Steve Lhomme git at videolan.org
Fri Mar 29 17:31:31 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 22 11:02:41 2019 +0100| [bd38d85ff961706bd5dadcaaad882ab468a107c4] | committer: Steve Lhomme

vout:win32: simplify the test on zero output dimensions

The rect_dest_clipped width/height always correspond to the placed width/height

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

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

diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index 09b5dcd8b3..63f8b937c7 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -238,8 +238,7 @@ void UpdateRects(vout_display_t *vd, bool is_forced)
     rect_dest_clipped = rect_dest;
 
     /* the 2 following lines are to fix a bug when clicking on the desktop */
-    if (RECTWidth(rect_dest_clipped) == 0 ||
-        RECTHeight(rect_dest_clipped) == 0) {
+    if (place.width == 0 || place.height == 0) {
 #if !VLC_WINSTORE_APP
         SetRectEmpty(&rect_src_clipped);
 #endif



More information about the vlc-commits mailing list