[vlc-devel] [PATCH 15/41] vout:win32: simplify the test on zero output dimensions
Steve Lhomme
robux4 at ycbcr.xyz
Fri Mar 22 16:13:53 CET 2019
The rect_dest_clipped width/height always correspond to the placed width/height
---
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 204b1c1af0..53ceda9a0f 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -234,8 +234,7 @@ static void UpdateRectsInternal(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
--
2.17.1
More information about the vlc-devel
mailing list