summaryrefslogtreecommitdiff
path: root/chromium/ui/display/win/scaling_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/display/win/scaling_util.h')
-rw-r--r--chromium/ui/display/win/scaling_util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/ui/display/win/scaling_util.h b/chromium/ui/display/win/scaling_util.h
index 18b475f3cc4..74e8d5a34ed 100644
--- a/chromium/ui/display/win/scaling_util.h
+++ b/chromium/ui/display/win/scaling_util.h
@@ -134,7 +134,9 @@ DISPLAY_EXPORT DisplayPlacement CalculateDisplayPlacement(
// | | | |
// +---+ +----+
//
-// For rectangles that intersect each other, the distance is 0.
+// For rectangles that intersect each other, the distance is the negative value
+// of the overlapping area, so callers can distinguish different amounts of
+// overlap.
//
// The squared distance is used to avoid taking the square root as the common
// usage is to compare distances greater than 1 unit.