Skip to content

Commit 7fb3660

Browse files
committed
fallback to BitBlt for Desktop capture if PrintWindow is selected.
1 parent 5ffd33f commit 7fb3660

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
0 Bytes
Binary file not shown.
512 Bytes
Binary file not shown.

Plugins/uWindowCapture/uWindowCapture/WindowTexture.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@ CaptureMode WindowTexture::GetCaptureModeInternal() const
7575
return CaptureMode::PrintWindow;
7676
}
7777
}
78+
79+
if (captureMode_ == CaptureMode::PrintWindow)
80+
{
81+
if (window_->IsDesktop())
82+
{
83+
return CaptureMode::BitBlt;
84+
}
85+
}
86+
7887
return captureMode_;
7988
}
8089

0 commit comments

Comments
 (0)