mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
classref: Sync with current master branch (2ba22d1)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user