| 463 | } |
| 464 | |
| 465 | HRESULT |
| 466 | DeviceManager::ResizeWindow(int width, int height) |
| 467 | { |
| 468 | if(m_SwapChain == NULL) |
| 469 | return E_FAIL; |
| 470 | |
| 471 | RECT rect; |
| 472 | GetWindowRect(m_hWnd, &rect); |
| 473 | |
| 474 | ShowWindow(m_hWnd, SW_RESTORE); |
| 475 | |
| 476 | if(!MoveWindow(m_hWnd, rect.left, rect.top, width, height, true)) |
| 477 | return E_FAIL; |
| 478 | |
| 479 | // No need to call m_SwapChain->ResizeBackBuffer because MoveWindow will send WM_SIZE, which calls that function. |
| 480 | |
| 481 | return S_OK; |
| 482 | } |
| 483 | |
| 484 | HRESULT |
| 485 | DeviceManager::EnterFullscreenMode(int width, int height) |
nothing calls this directly
no outgoing calls
no test coverage detected