| 633 | } |
| 634 | |
| 635 | void 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 | |
| 658 | STDMETHODIMP CMpcVideoRenderer::NonDelegatingQueryInterface(REFIID riid, void** ppv) |
| 659 | { |
no test coverage detected