Commit dc88b216 authored by Steve Lhomme's avatar Steve Lhomme Committed by Hugo Beauzée-Luyssen

cppcx: no need to pass winrt-d3ddevice anymore

Signed-off-by: 's avatarHugo Beauzée-Luyssen <hugo@beauzee.fr>
parent ea2d48f7
......@@ -32,7 +32,7 @@ namespace libVLCX
Instance::Instance(Windows::Foundation::Collections::IVector<Platform::String^>^ argv, SwapChainPanel^ panel)
: m_chainPanel(panel)
{
int extraArgs = 3;
int extraArgs = 2;
auto c_argv = new char*[argv->Size + extraArgs];
unsigned int i = 0;
for (auto arg : argv)
......@@ -58,10 +58,6 @@ namespace libVLCX
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);
argv[nbArgs++] = _strdup(ptr_d3dstring);
char ptr_d3dcstring[64];
sprintf_s(ptr_d3dcstring, "--winrt-d3dcontext=0x%p", m_dxManager->cp_d3dContext);
argv[nbArgs++] = _strdup(ptr_d3dcstring);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment