mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 21:40:06 +00:00
Fix DXVA video centering
This commit is contained in:
1 parent
5ee1358712
commit
bd8e4a4bce
1 file changed
+1
-1
@@ -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