[vlc-devel] [PATCH 4/6] direct3d11: update the picQuad position when the display position changed

Steve Lhomme robux4 at videolabs.io
Thu Jul 27 17:46:11 CEST 2017


---
 modules/video_output/win32/direct3d11.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index d87a1c802d..570c9ec724 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1067,6 +1067,14 @@ static void UpdateSize(vout_display_t *vd)
     UpdateBackBuffer(vd);
 
     UpdatePicQuadPosition(vd);
+
+    sys->picQuad.i_x_offset = sys->sys.rect_src.left;
+    sys->picQuad.i_y_offset = sys->sys.rect_src.top;
+    sys->picQuad.i_width = RECTWidth(sys->sys.rect_src);
+    sys->picQuad.i_height = RECTHeight(sys->sys.rect_src);
+    UpdateQuadPosition(vd, &sys->picQuad, &sys->sys.rect_src_clipped,
+                       vd->fmt.projection_mode, vd->fmt.orientation);
+
 #if defined(HAVE_ID3D11VIDEODECODER)
     if( sys->context_lock != INVALID_HANDLE_VALUE )
     {
-- 
2.12.1



More information about the vlc-devel mailing list