| 598 | } |
| 599 | |
| 600 | void CMpcVideoRenderer::UpdateDisplayInfo() |
| 601 | { |
| 602 | const HMONITOR hMonPrimary = MonitorFromPoint(CPoint(0, 0), MONITOR_DEFAULTTOPRIMARY); |
| 603 | |
| 604 | MONITORINFOEXW mi = { sizeof(mi) }; |
| 605 | GetMonitorInfoW(m_hMon, (MONITORINFO*)&mi); |
| 606 | |
| 607 | bool ret = GetDisplayConfig(mi.szDevice, m_DisplayConfig); |
| 608 | if (m_hMon == hMonPrimary) { |
| 609 | m_bPrimaryDisplay = true; |
| 610 | } else { |
| 611 | m_bPrimaryDisplay = false; |
| 612 | } |
| 613 | |
| 614 | m_VideoProcessor->SetDisplayInfo(m_DisplayConfig, m_bPrimaryDisplay, m_bExclusiveScreen); |
| 615 | } |
| 616 | |
| 617 | void CMpcVideoRenderer::OnDisplayModeChange(const bool bReset/* = false*/) |
| 618 | { |
no test coverage detected