Skip to content

Commit 1d5c589

Browse files
committedNov 15, 2024
Merge pull request #99212 from CW-Jesse/patch-1
Describe edge cases for `DisplayServer.get_screen_from_rect()`
2 parents 03863f1 + 121097d commit 1d5c589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/classes/DisplayServer.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
<return type="int" />
238238
<param index="0" name="rect" type="Rect2" />
239239
<description>
240-
Returns index of the screen which contains specified rectangle.
240+
Returns the index of the screen that overlaps the most with the given rectangle. Returns [code]-1[/code] if the rectangle doesn't overlap with any screen or has no area.
241241
</description>
242242
</method>
243243
<method name="get_swap_cancel_ok">

0 commit comments

Comments
 (0)