Commit 84acc6e5 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: update the picQuad position when the display position changed

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent ad2a13fc
......@@ -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 )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment