diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc index b342e9faeb..10e3ca4344 100644 --- a/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc +++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_gdi.cc @@ -195,7 +195,8 @@ bool ScreenCapturerWinGdi::CaptureImage() { return false; queue_.ReplaceCurrentFrame(SharedDesktopFrame::Wrap(std::move(buffer))); } - queue_.current_frame()->set_top_left(screen_rect.top_left()); + queue_.current_frame()->set_top_left( + screen_rect.top_left().subtract(GetFullscreenRect().top_left())); // Select the target bitmap into the memory dc and copy the rect from desktop // to memory.