fix: dipToScreenRect / screenToDipRect - window can be null (#13924)

This commit is contained in:
trop[bot] 2018-08-03 13:14:52 +10:00 committed by Samuel Attard
parent bfbd4a2540
commit 8f5fafb636

View file

@ -136,7 +136,7 @@ The DPI scale is performed relative to the display containing the DIP point.
### `screen.screenToDipRect(window, rect)` _Windows_
* `window` [BrowserWindow](browser-window.md)
* `window` [BrowserWindow](browser-window.md) | null
* `rect` [Rectangle](structures/rectangle.md)
Returns [`Rectangle`](structures/rectangle.md)
@ -147,7 +147,7 @@ If `window` is null, scaling will be performed to the display nearest to `rect`.
### `screen.dipToScreenRect(window, rect)` _Windows_
* `window` [BrowserWindow](browser-window.md)
* `window` [BrowserWindow](browser-window.md) | null
* `rect` [Rectangle](structures/rectangle.md)
Returns [`Rectangle`](structures/rectangle.md)