فهرست منبع

[DisplayServer] [docs] Describe edge cases for `get_screen_from_rect()`

Describes output when multiple screens intersect with rectangle or rectangle has no area.
Jesse 9 ماه پیش
والد
کامیت
4ba533d0b5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      doc/classes/DisplayServer.xml

+ 1 - 1
doc/classes/DisplayServer.xml

@@ -237,7 +237,7 @@
 			<return type="int" />
 			<param index="0" name="rect" type="Rect2" />
 			<description>
-				Returns index of the screen which contains specified rectangle.
+				Returns index of screen that overlaps the most with the given rectangle. Returns [code]-1[/code] if the rectangle doesn't overlap any screen or has zero area.
 			</description>
 		</method>
 		<method name="get_swap_cancel_ok">