MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / OnWindowMove

Method OnWindowMove

Source/VideoRenderer.cpp:635–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635void CMpcVideoRenderer::OnWindowMove()
636{
637 if (GetActive()) {
638 const HMONITOR hMon = MonitorFromWindow(m_hWnd, MONITOR_DEFAULTTONEAREST);
639 if (hMon != m_hMon) {
640 if (m_Sets.bReinitByDisplay) {
641 CAutoLock cRendererLock(&m_RendererLock);
642
643 Init(true);
644 }
645 else if (m_VideoProcessor->Type() == VP_DX11) {
646 CAutoLock cRendererLock(&m_RendererLock);
647
648 m_VideoProcessor->Reset(false);
649 }
650
651 m_hMon = hMon;
652 UpdateDisplayInfo();
653 m_VideoProcessor->UpdateStatsByDisplay();
654 }
655 }
656}
657
658STDMETHODIMP CMpcVideoRenderer::NonDelegatingQueryInterface(REFIID riid, void** ppv)
659{

Callers 1

ParentWndProcFunction · 0.80

Calls 3

UpdateStatsByDisplayMethod · 0.80
TypeMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected