From 0f8b5ab606591722a7428312832be540b15767d3 Mon Sep 17 00:00:00 2001 From: Jim Fisher Date: Thu, 7 Jan 2021 10:49:45 +0000 Subject: [PATCH] docs: coordinate system of Display.bounds and Display.workArea (#27157) They are in DIP points (rather than screen points). We can use screen.dipToScreen* to convert to screen points. --- docs/api/structures/display.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/structures/display.md b/docs/api/structures/display.md index f10636d05b70..5d296e6f1d84 100644 --- a/docs/api/structures/display.md +++ b/docs/api/structures/display.md @@ -11,9 +11,9 @@ * `colorDepth` Number - The number of bits per pixel. * `depthPerComponent` Number - The number of bits per color component. * `displayFrequency` Number - The display refresh rate. -* `bounds` [Rectangle](rectangle.md) +* `bounds` [Rectangle](rectangle.md) - the bounds of the display in DIP points. * `size` [Size](size.md) -* `workArea` [Rectangle](rectangle.md) +* `workArea` [Rectangle](rectangle.md) - the work area of the display in DIP points. * `workAreaSize` [Size](size.md) * `internal` Boolean - `true` for an internal display and `false` for an external display