| 571 | } |
| 572 | |
| 573 | HRESULT |
| 574 | DeviceManager::GetDisplayResolution(int& width, int& height) |
| 575 | { |
| 576 | if(m_hWnd != INVALID_HANDLE_VALUE) |
| 577 | { |
| 578 | HMONITOR monitor = MonitorFromWindow(m_hWnd, MONITOR_DEFAULTTOPRIMARY); |
| 579 | MONITORINFO info; |
| 580 | info.cbSize = sizeof(MONITORINFO); |
| 581 | |
| 582 | if(GetMonitorInfo(monitor, &info)) |
| 583 | { |
| 584 | width = info.rcMonitor.right - info.rcMonitor.left; |
| 585 | height = info.rcMonitor.bottom - info.rcMonitor.top; |
| 586 | return S_OK; |
| 587 | } |
| 588 | } |
| 589 | |
| 590 | return E_FAIL; |
| 591 | } |
| 592 | |
| 593 | IDXGIAdapter* |
| 594 | DeviceManager::GetDXGIAdapter() |
nothing calls this directly
no outgoing calls
no test coverage detected