mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-11-10 13:44:17 +00:00
Fix DXVA video centering
This commit is contained in:
parent
5ee1358712
commit
bd8e4a4bce
1 changed files with 1 additions and 1 deletions
|
@ -450,7 +450,7 @@ void DXVA2Renderer::renderFrame(AVFrame* frame)
|
||||||
int drawWidth = (int)(m_DisplayHeight * srcAspectRatio);
|
int drawWidth = (int)(m_DisplayHeight * srcAspectRatio);
|
||||||
sample.DstRect.bottom = m_DisplayHeight;
|
sample.DstRect.bottom = m_DisplayHeight;
|
||||||
sample.DstRect.left = (m_DisplayWidth - drawWidth) / 2;
|
sample.DstRect.left = (m_DisplayWidth - drawWidth) / 2;
|
||||||
sample.DstRect.right = drawWidth;
|
sample.DstRect.right = sample.DstRect.left + drawWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
DXVA2_VideoProcessBltParams bltParams = {};
|
DXVA2_VideoProcessBltParams bltParams = {};
|
||||||
|
|
Loading…
Reference in a new issue