| Index: webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc
|
| diff --git a/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc b/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc
|
| index ad7fd7036ef5683629be386f4384f904a236a61c..12876c2c89d4612731de10c6e1ba51932f1d8003 100644
|
| --- a/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc
|
| +++ b/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.cc
|
| @@ -193,7 +193,6 @@
|
| std::max(left.right(), right.right()),
|
| std::max(left.bottom(), right.bottom()));
|
| }
|
| - TranslateRect();
|
| }
|
|
|
| HDC hdc = GetDC(nullptr);
|
| @@ -296,7 +295,7 @@
|
| }
|
|
|
| DesktopSize DxgiDuplicatorController::desktop_size() const {
|
| - return desktop_rect_.size();
|
| + return DesktopSize(desktop_rect_.right(), desktop_rect_.bottom());
|
| }
|
|
|
| DesktopRect DxgiDuplicatorController::ScreenRect(int id) const {
|
| @@ -379,13 +378,4 @@
|
| return true;
|
| }
|
|
|
| -void DxgiDuplicatorController::TranslateRect() {
|
| - const DesktopVector position =
|
| - DesktopVector().subtract(desktop_rect_.top_left());
|
| - desktop_rect_.Translate(position);
|
| - for (auto& duplicator : duplicators_) {
|
| - duplicator.TranslateRect(position);
|
| - }
|
| -}
|
| -
|
| } // namespace webrtc
|
|
|