Skip to content
Snippets Groups Projects
Commit 0c002994 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

cppcx: swapchain: Use the real pixel size

parent 544bb60c
No related branches found
No related tags found
Loading
......@@ -55,7 +55,8 @@ namespace libVLCX
{
m_dxManager.reset(new DirectXManager);
m_dxManager->CreateSwapPanel(m_chainPanel);
UpdateSize(m_chainPanel->ActualWidth, m_chainPanel->ActualHeight);
UpdateSize(m_chainPanel->ActualWidth * m_chainPanel->CompositionScaleX,
m_chainPanel->ActualHeight * m_chainPanel->CompositionScaleY);
char ptr_d3dstring[64];
sprintf_s(ptr_d3dstring, "--winrt-d3ddevice=0x%p", m_dxManager->cp_d3dDevice);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment