mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 06:01:12 +00:00
Fix DXVA video centering
This commit is contained in:
@@ -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 = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user