[vlc-commits] [Git][videolan/libvlcpp][master] cppcx: swapchain: Use the real pixel size

Hugo Beauzée-Luyssen gitlab at videolan.org
Mon Nov 7 18:26:57 CET 2016


Hugo Beauzée-Luyssen pushed to branch master at videolan / libvlcpp


Commits:
0c002994 by Hugo Beauzée-Luyssen at 2016-11-07T17:34:22+01:00
cppcx: swapchain: Use the real pixel size

- - - - -


1 changed file:

- cppcx/InstanceCX.cpp


Changes:

=====================================
cppcx/InstanceCX.cpp
=====================================
--- a/cppcx/InstanceCX.cpp
+++ b/cppcx/InstanceCX.cpp
@@ -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);



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/commit/0c00299480d70acdcb39290387ba069411253f56
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-commits/attachments/20161107/4df29e43/attachment.html>


More information about the vlc-commits mailing list