We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6d6a13 commit e2815f1Copy full SHA for e2815f1
1 file changed
capture.hpp
@@ -1077,8 +1077,11 @@ int DesktopCapture(DESKTOPCAPTUREPARAMS& dp)
1077
rt = a;
1078
1079
if (dp.hWnd)
1080
+ {
1081
GetWindowRect(dp.hWnd, &dp.rx);
-
1082
+ if (dp.rx.left < 0 || dp.rx.right < 0)
1083
+ dp.rx = {};
1084
+ }
1085
1086
CComPtr<IMMDeviceEnumerator> deviceEnumerator = 0;
1087
if(dp.HasAudio)
0 commit comments