classref: Sync with current master branch (2ba22d1)

This commit is contained in:
Godot Organization
2024-05-11 03:20:08 +00:00
parent 183d0e3147
commit 52e63d3864
34 changed files with 626 additions and 111 deletions

View File

@@ -3271,9 +3271,11 @@ To fallback to a default refresh rate if the method fails, try:
Returns the scale factor of the specified screen by index.
\ **Note:** On macOS returned value is ``2.0`` for hiDPI (Retina) screen, and ``1.0`` for all other cases.
\ **Note:** On macOS, the returned value is ``2.0`` for hiDPI (Retina) screens, and ``1.0`` for all other cases.
\ **Note:** This method is implemented only on macOS.
\ **Note:** On Linux (Wayland), the returned value is accurate only when ``screen`` is :ref:`SCREEN_OF_MAIN_WINDOW<class_DisplayServer_constant_SCREEN_OF_MAIN_WINDOW>`. Due to API limitations, passing a direct index will return a rounded-up integer, if the screen has a fractional scale (e.g. ``1.25`` would get rounded up to ``2.0``).
\ **Note:** This method is implemented only on macOS and Linux (Wayland).
.. rst-class:: classref-item-separator