MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / SetWindowRect

Method SetWindowRect

Source/DX11VideoProcessor.cpp:3433–3451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3431}
3432
3433HRESULT CDX11VideoProcessor::SetWindowRect(const CRect& windowRect)
3434{
3435 m_windowRect = windowRect;
3436 UpdateRenderRect();
3437
3438 HRESULT hr = S_OK;
3439 const UINT w = m_windowRect.Width();
3440 const UINT h = m_windowRect.Height();
3441
3442 if (m_pDXGISwapChain1 && !m_bExclusiveScreen) {
3443 hr = m_pDXGISwapChain1->ResizeBuffers(0, w, h, DXGI_FORMAT_UNKNOWN, 0);
3444 }
3445
3446 UpdateStatsByWindow();
3447
3448 UpdatePostScaleTexures();
3449
3450 return hr;
3451}
3452
3453HRESULT CDX11VideoProcessor::Reset(bool bDisplayModeChange)
3454{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected