MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/HBAOPlus / ResizeWindow

Method ResizeWindow

samples/D3D11/src/DeviceManager.cpp:465–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465HRESULT
466DeviceManager::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
484HRESULT
485DeviceManager::EnterFullscreenMode(int width, int height)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected