Commit f845e7e0 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

InstanceCX: Store width & height as uint

parent 701e84ad
......@@ -104,8 +104,8 @@ namespace libVLCX
const float scaleFactor = (float) DisplayProperties::ResolutionScale / 100.f;
#endif
m_width = x * scaleFactor;
m_height = y * scaleFactor;
m_width = (uint32_t)(x * scaleFactor);
m_height = (uint32_t)(y * scaleFactor);
}
int Instance::addIntf(Platform::String^ name)
......
......@@ -170,8 +170,8 @@ namespace libVLCX
VLC::Instance m_instance;
// <HACK HACK HACK!>
std::unique_ptr<DirectXManger> m_dxManager;
float m_width;
float m_height;
unsigned int m_width;
unsigned int m_height;
SwapChainPanel^ m_chainPanel;
// </HACK HACK HACK>
};
......
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