[vlc-commits] vout:win32: move the window position retrieval
Steve Lhomme
git at videolan.org
Fri Mar 29 17:31:29 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Mar 22 09:02:51 2019 +0100| [793a756acd8d685fc3130d742bea0aa1fc8de351] | committer: Steve Lhomme
vout:win32: move the window position retrieval
Closer to where it's used
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=793a756acd8d685fc3130d742bea0aa1fc8de351
---
modules/video_output/win32/common.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/video_output/win32/common.c b/modules/video_output/win32/common.c
index 020dc5bc93..09b5dcd8b3 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -165,11 +165,6 @@ void UpdateRects(vout_display_t *vd, bool is_forced)
{
if (!sys->pf_GetRect(sys, &rect))
return;
-
-#if !VLC_WINSTORE_APP
- /* Retrieve the window position */
- ClientToScreen(sys->hwnd, &point);
-#endif
}
/* If nothing changed, we can return */
@@ -186,9 +181,14 @@ void UpdateRects(vout_display_t *vd, bool is_forced)
has_moved = is_resized = false;
}
else
- EventThreadUpdateWindowPosition(sys->event, &has_moved, &is_resized,
- point.x, point.y,
- rect.right, rect.bottom);
+ {
+ /* Retrieve the window position */
+ ClientToScreen(sys->hwnd, &point);
+
+ EventThreadUpdateWindowPosition(sys->event, &has_moved, &is_resized,
+ point.x, point.y,
+ rect.right, rect.bottom);
+}
#endif
if (!is_forced && !has_moved && !is_resized)
return;
More information about the vlc-commits
mailing list