[vlc-commits] direct3d11: update the picQuad position when the display position changed

Steve Lhomme git at videolan.org
Thu Jul 27 18:30:34 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Jul 27 17:46:11 2017 +0200| [84acc6e58d06c6367f22b9327773ef4b1e34abf8] | committer: Jean-Baptiste Kempf

direct3d11: update the picQuad position when the display position changed

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 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 )
     {



More information about the vlc-commits mailing list