feat: 添加 GDI Over DXGI 抓取模式

This commit is contained in:
Xu Liu 2021-09-13 23:59:59 +08:00
commit c072b5af3c
18 changed files with 214 additions and 468 deletions

View file

@ -14,7 +14,7 @@ bool GraphicsCaptureFrameSource::Initialize() {
RECT srcRect{};
HRESULT hr = DwmGetWindowAttribute(hwndSrc, DWMWA_EXTENDED_FRAME_BOUNDS, &srcRect, sizeof(srcRect));
if (FAILED(hr)) {
SPDLOG_LOGGER_CRITICAL(logger, MakeComErrorMsg("DwmGetWindowAttribute 失败", hr));
SPDLOG_LOGGER_ERROR(logger, MakeComErrorMsg("DwmGetWindowAttribute 失败", hr));
return false;
}