Skip to content

Commit fceed0f

Browse files
miniakMarshallOfSound
authored andcommitted
fix: dipToScreenRect / screenToDipRect - window can be null (electron#13903)
1 parent 03293d7 commit fceed0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/api/screen.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ The DPI scale is performed relative to the display containing the DIP point.
136136

137137
### `screen.screenToDipRect(window, rect)` _Windows_
138138

139-
* `window` [BrowserWindow](browser-window.md)
139+
* `window` [BrowserWindow](browser-window.md) | null
140140
* `rect` [Rectangle](structures/rectangle.md)
141141

142142
Returns [`Rectangle`](structures/rectangle.md)
@@ -147,7 +147,7 @@ If `window` is null, scaling will be performed to the display nearest to `rect`.
147147

148148
### `screen.dipToScreenRect(window, rect)` _Windows_
149149

150-
* `window` [BrowserWindow](browser-window.md)
150+
* `window` [BrowserWindow](browser-window.md) | null
151151
* `rect` [Rectangle](structures/rectangle.md)
152152

153153
Returns [`Rectangle`](structures/rectangle.md)

0 commit comments

Comments
 (0)