Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2470)

Unified Diff: ash/display/multi_display_manager.cc

Issue 10795080: A couple of multiple displays support fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/display/display_controller.cc ('k') | ash/display/multi_display_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/multi_display_manager.cc
diff --git a/ash/display/multi_display_manager.cc b/ash/display/multi_display_manager.cc
index becb5f46a6b252441250ab4e92bca1ebff26e9bb..375121017c8abd0c0606ba2d651e41fd88a357e2 100644
--- a/ash/display/multi_display_manager.cc
+++ b/ash/display/multi_display_manager.cc
@@ -278,8 +278,7 @@ void MultiDisplayManager::AddDisplayFromSpec(const std::string& spec) {
if (DisplayController::IsExtendedDesktopEnabled()) {
const gfx::Insets insets = display.GetWorkAreaInsets();
const gfx::Rect& native_bounds = display.bounds_in_pixel();
- display.set_bounds(
- gfx::Rect(native_bounds.origin(), display.bounds().size()));
+ display.SetScaleAndBounds(display.device_scale_factor(), native_bounds);
display.UpdateWorkAreaFromInsets(insets);
}
displays_.push_back(display);
« no previous file with comments | « ash/display/display_controller.cc ('k') | ash/display/multi_display_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698