Skip to content

Commit

Permalink
fallback to BitBlt for Desktop capture if PrintWindow is selected.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed May 2, 2021
1 parent 5ffd33f commit 7fb3660
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Binary file modified Assets/uWindowCapture/Plugins/x86/uWindowCapture.dll
Binary file not shown.
Binary file modified Assets/uWindowCapture/Plugins/x86_64/uWindowCapture.dll
Binary file not shown.
9 changes: 9 additions & 0 deletions Plugins/uWindowCapture/uWindowCapture/WindowTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@ CaptureMode WindowTexture::GetCaptureModeInternal() const
return CaptureMode::PrintWindow;
}
}

if (captureMode_ == CaptureMode::PrintWindow)
{
if (window_->IsDesktop())
{
return CaptureMode::BitBlt;
}
}

return captureMode_;
}

Expand Down

0 comments on commit 7fb3660

Please sign in to comment.