[vlc-commits] vout:win32: log the src/dst rectangles even if the display width/height is 0
Steve Lhomme
git at videolan.org
Mon Apr 1 12:03:42 CEST 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 22 14:00:11 2019 +0100| [aa130e06ce33ae0efc83dc15106eda10a88774c7] | committer: Steve Lhomme
vout:win32: log the src/dst rectangles even if the display width/height is 0
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=aa130e06ce33ae0efc83dc15106eda10a88774c7
---
modules/video_output/win32/common.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index 1c9583b88f..9929cfb59b 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -230,17 +230,6 @@ void UpdateRects(vout_display_t *vd, vout_display_sys_win32_t *sys, bool is_forc
rect_dest.bottom = rect_dest.top + place.height;
#endif
- /* the 2 following lines are to fix a bug when clicking on the desktop */
- if (place.width == 0 || place.height == 0) {
- goto exit;
- }
-
- /* src image dimensions */
- rect_src.left = 0;
- rect_src.top = 0;
- rect_src.right = sys->pf_GetPictureWidth(vd);
- rect_src.bottom = sys->pf_GetPictureHeight(vd);
-
#ifndef NDEBUG
msg_Dbg(vd, "DirectXUpdateRects source"
" offset: %i,%i visible: %ix%i",
@@ -256,6 +245,17 @@ void UpdateRects(vout_display_t *vd, vout_display_sys_win32_t *sys, bool is_forc
rect_dest.right, rect_dest.bottom);
#endif
+ /* the 2 following lines are to fix a bug when clicking on the desktop */
+ if (place.width == 0 || place.height == 0) {
+ goto exit;
+ }
+
+ /* src image dimensions */
+ rect_src.left = 0;
+ rect_src.top = 0;
+ rect_src.right = sys->pf_GetPictureWidth(vd);
+ rect_src.bottom = sys->pf_GetPictureHeight(vd);
+
#if !VLC_WINSTORE_APP
CommonChangeThumbnailClip(VLC_OBJECT(vd), sys, true);
#endif
More information about the vlc-commits
mailing list