mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[cosmetics] fixed unintentional de-indent of code
This commit is contained in:
parent
ffbd89fb77
commit
de8403dcd6
@ -91,40 +91,40 @@ namespace Capture
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_maxCaptureWidth = params.dwMaxDisplayWidth;
|
m_maxCaptureWidth = params.dwMaxDisplayWidth;
|
||||||
m_maxCaptureHeight = params.dwMaxDisplayHeight;
|
m_maxCaptureHeight = params.dwMaxDisplayHeight;
|
||||||
m_nvFBC = static_cast<NvFBCToSys *>(params.pNvFBC);
|
m_nvFBC = static_cast<NvFBCToSys *>(params.pNvFBC);
|
||||||
|
|
||||||
NVFBC_TOSYS_SETUP_PARAMS setupParams;
|
NVFBC_TOSYS_SETUP_PARAMS setupParams;
|
||||||
ZeroMemory(&setupParams, sizeof(NVFBC_TOSYS_SETUP_PARAMS));
|
ZeroMemory(&setupParams, sizeof(NVFBC_TOSYS_SETUP_PARAMS));
|
||||||
setupParams.dwVersion = NVFBC_TOSYS_SETUP_PARAMS_VER;
|
setupParams.dwVersion = NVFBC_TOSYS_SETUP_PARAMS_VER;
|
||||||
setupParams.eMode = NVFBC_TOSYS_RGB;
|
setupParams.eMode = NVFBC_TOSYS_RGB;
|
||||||
setupParams.bWithHWCursor = TRUE;
|
setupParams.bWithHWCursor = TRUE;
|
||||||
setupParams.bDiffMap = FALSE;
|
setupParams.bDiffMap = FALSE;
|
||||||
setupParams.ppBuffer = (void **)&m_frameBuffer;
|
setupParams.ppBuffer = (void **)&m_frameBuffer;
|
||||||
setupParams.ppDiffMap = NULL;
|
setupParams.ppDiffMap = NULL;
|
||||||
|
|
||||||
if (m_nvFBC->NvFBCToSysSetUp(&setupParams) != NVFBC_SUCCESS)
|
if (m_nvFBC->NvFBCToSysSetUp(&setupParams) != NVFBC_SUCCESS)
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("NvFBCToSysSetUp Failed");
|
DEBUG_ERROR("NvFBCToSysSetUp Failed");
|
||||||
DeInitialize();
|
DeInitialize();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// this is required according to NVidia sample code
|
// this is required according to NVidia sample code
|
||||||
Sleep(100);
|
Sleep(100);
|
||||||
|
|
||||||
ZeroMemory(&m_grabFrameParams, sizeof(NVFBC_TOSYS_GRAB_FRAME_PARAMS));
|
ZeroMemory(&m_grabFrameParams, sizeof(NVFBC_TOSYS_GRAB_FRAME_PARAMS));
|
||||||
ZeroMemory(&m_grabInfo, sizeof(NvFBCFrameGrabInfo));
|
ZeroMemory(&m_grabInfo, sizeof(NvFBCFrameGrabInfo));
|
||||||
m_grabFrameParams.dwVersion = NVFBC_TOSYS_GRAB_FRAME_PARAMS_VER;
|
m_grabFrameParams.dwVersion = NVFBC_TOSYS_GRAB_FRAME_PARAMS_VER;
|
||||||
m_grabFrameParams.dwFlags = NVFBC_TOSYS_NOFLAGS;
|
m_grabFrameParams.dwFlags = NVFBC_TOSYS_NOFLAGS;
|
||||||
m_grabFrameParams.dwStartX = 0;
|
m_grabFrameParams.dwStartX = 0;
|
||||||
m_grabFrameParams.dwStartY = 0;
|
m_grabFrameParams.dwStartY = 0;
|
||||||
m_grabFrameParams.eGMode = NVFBC_TOSYS_SOURCEMODE_SCALE;
|
m_grabFrameParams.eGMode = NVFBC_TOSYS_SOURCEMODE_SCALE;
|
||||||
m_grabFrameParams.pNvFBCFrameGrabInfo = &m_grabInfo;
|
m_grabFrameParams.pNvFBCFrameGrabInfo = &m_grabInfo;
|
||||||
|
|
||||||
m_initialized = true;
|
m_initialized = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void NvFBC::DeInitialize()
|
void NvFBC::DeInitialize()
|
||||||
|
Loading…
Reference in New Issue
Block a user