[vlc-commits] direct3d11: move the legacy UWP size check outside of the rendering callback

Steve Lhomme git at videolan.org
Tue Apr 30 11:13:59 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr 18 08:19:49 2019 +0200| [23342c11678e14a9aa2b82b36befecd8301e240d] | committer: Steve Lhomme

direct3d11: move the legacy UWP size check outside of the rendering callback

At some point this code should go away.

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

 modules/video_output/win32/direct3d11.c | 21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index cd7480ee41..1b05f72163 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -278,17 +278,6 @@ 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(VLC_OBJECT(vd), &sys->area, &sys->sys);
-#endif
-
-    if ( sys->area.place_changed )
-    {
-        UpdateSize(vd);
-        sys->area.place_changed =false;
-    }
-
     D3D11_ClearRenderTargets( &sys->d3d_dev, sys->display.pixelFormat, sys->swapchainTargetView );
     return true;
 }
@@ -919,6 +908,16 @@ static void Prepare(vout_display_t *vd, picture_t *picture,
     vout_display_sys_t *sys = vd->sys;
 
     VLC_UNUSED(date);
+#if VLC_WINSTORE_APP
+    /* TODO read the swapchain size and call VOUT_DISPLAY_CHANGE_DISPLAY_SIZE */
+    UpdateRects(VLC_OBJECT(vd), &sys->area, &sys->sys);
+#endif
+
+    if ( sys->area.place_changed )
+    {
+        UpdateSize(vd);
+        sys->area.place_changed =false;
+    }
 
     if (sys->starRenderCb(sys->outside_opaque))
     {



More information about the vlc-commits mailing list