diff options
Diffstat (limited to 'ash/display/multi_display_manager.cc')
-rw-r--r-- | ash/display/multi_display_manager.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ash/display/multi_display_manager.cc b/ash/display/multi_display_manager.cc index d93321b..5911ae9 100644 --- a/ash/display/multi_display_manager.cc +++ b/ash/display/multi_display_manager.cc @@ -360,8 +360,7 @@ const gfx::Display& MultiDisplayManager::GetDisplayMatching( for (std::vector<gfx::Display>::const_iterator iter = displays_.begin(); iter != displays_.end(); ++iter) { const gfx::Display& display = *iter; - gfx::Rect intersect = display.bounds(); - intersect.Intersect(rect); + gfx::Rect intersect = gfx::IntersectRects(display.bounds(), rect); int area = intersect.width() * intersect.height(); if (area > max) { max = area; |