diff --git a/webrtc/modules/desktop_capture/screen_capturer_mac.mm b/webrtc/modules/desktop_capture/screen_capturer_mac.mm index f11b36d2d2..b1d7c9048e 100644 --- a/webrtc/modules/desktop_capture/screen_capturer_mac.mm +++ b/webrtc/modules/desktop_capture/screen_capturer_mac.mm @@ -991,8 +991,10 @@ void ScreenCapturerMac::ScreenRefresh(CGRectCount count, DesktopRegion region; for (CGRectCount i = 0; i < count; ++i) { - // Convert from Density-Independent Pixel to physical pixel coordinates. - DesktopRect rect = ScaleAndRoundCGRect(rect_array[i], dip_to_pixel_scale_); + // All rects are already in physical pixel coordinates. + DesktopRect rect = DesktopRect::MakeXYWH( + rect_array[i].origin.x, rect_array[i].origin.y, + rect_array[i].size.width, rect_array[i].size.height); region.AddRect(rect); }