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

Unified Diff: ash/wm/workspace/snap_sizer.cc

Issue 11033038: Fix the issue of cursor's device scale factor when using monitors with differnt device scale factor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests Created 8 years, 2 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
Index: ash/wm/workspace/snap_sizer.cc
diff --git a/ash/wm/workspace/snap_sizer.cc b/ash/wm/workspace/snap_sizer.cc
index 06a80e900936644f0f3e71190227b984773b74bd..fa6c3a4eefc1e0de01b4d1f18e1eacdc738b0b04 100644
--- a/ash/wm/workspace/snap_sizer.cc
+++ b/ash/wm/workspace/snap_sizer.cc
@@ -100,9 +100,10 @@ gfx::Rect SnapSizer::GetTargetBoundsForSize(size_t size_index) const {
width = std::max(1024, work_area.width() / 2);
} else {
while (width >= work_area.width()) {
+ ++size_index;
if (size_index >= arraysize(kSizes))
break;
- width = kSizes[++size_index];
+ width = kSizes[size_index];
}
}

Powered by Google App Engine
This is Rietveld 408576698