Commit 444ae511 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

direct3d11: update the quad position using the picture placing algorithm

When the decoder uses a different size than what was configured in the pool.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent a212c6a3
......@@ -1154,15 +1154,15 @@ static void Prepare(vout_display_t *vd, picture_t *picture, subpicture_t *subpic
if ( sys->picQuad.i_height != texDesc.Height ||
sys->picQuad.i_width != texDesc.Width )
if ( vd->fmt.i_height != texDesc.Height ||
vd->fmt.i_width != texDesc.Width )
/* the decoder produced different sizes than the vout, we need to
* adjust the vertex */
sys->picQuad.i_height = texDesc.Height;
sys->picQuad.i_width = texDesc.Width;
UpdateQuadPosition( vd, &sys->picQuad, &vd->fmt,
vd->fmt.projection_mode, vd->fmt.orientation );
vd->fmt.i_height = texDesc.Height;
vd->fmt.i_width = texDesc.Width;
UpdateRects(vd, NULL, NULL, true);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment