vlc | branch: master | Steve Lhomme <[email protected]> | Mon Apr  1 14:40:42 
2019 +0200| [4238c47f00466e48f53bcd6f594fa82b7b123e59] | committer: Steve Lhomme

direct3d11: replace the CommonManage call for Winstore builds

It just does an UpdateRects() all the time.

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

 modules/video_output/win32/common.c     | 10 +---------
 modules/video_output/win32/direct3d11.c |  5 +++++
 2 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/modules/video_output/win32/common.c 
b/modules/video_output/win32/common.c
index 3b9368671b..1e8ab342e6 100644
--- a/modules/video_output/win32/common.c
+++ b/modules/video_output/win32/common.c
@@ -402,15 +402,7 @@ static int CommonControlSetFullscreen(vlc_object_t *obj, 
vout_display_sys_win32_
     }
     return VLC_SUCCESS;
 }
-
-#else /* VLC_WINSTORE_APP */
-
-void CommonManage(vout_display_t *vd, vout_display_sys_win32_t *sys)
-{
-    /* just check the rendering size didn't change */
-    UpdateRects(vd, sys);
-}
-#endif /* VLC_WINSTORE_APP */
+#endif /* !VLC_WINSTORE_APP */
 
 int CommonControl(vout_display_t *vd, vout_display_sys_win32_t *sys, int 
query, va_list args)
 {
diff --git a/modules/video_output/win32/direct3d11.c 
b/modules/video_output/win32/direct3d11.c
index eb65a0ec4b..216f055e2e 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -283,7 +283,12 @@ static bool StartRendering(void *opaque)
     vout_display_t *vd = opaque;
     vout_display_sys_t *sys = vd->sys;
 
+#if VLC_WINSTORE_APP
+    /* TODO read the swapchain size and call VOUT_DISPLAY_CHANGE_DISPLAY_SIZE 
*/
+    UpdateRects(vd, sys);
+#else /* !VLC_WINSTORE_APP */
     CommonManage(vd, &sys->sys);
+#endif
 
     if ( sys->sys.place_changed )
     {

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to