|
1791 | 1791 | <method name="screen_get_max_scale" qualifiers="const"> |
1792 | 1792 | <return type="float" /> |
1793 | 1793 | <description> |
1794 | | - Returns the greatest scale factor of all screens. |
1795 | | - [b]Note:[/b] On macOS returned value is [code]2.0[/code] if there is at least one hiDPI (Retina) screen in the system, and [code]1.0[/code] in all other cases. |
1796 | | - [b]Note:[/b] This method is implemented only on macOS. |
| 1794 | + Returns the greatest scale factor of all screens. See also [method screen_get_scale]. |
| 1795 | + [b]Note:[/b] On macOS, the returned value is [code]2.0[/code] if there is at least one hiDPI (Retina) screen in the system, and [code]1.0[/code] in all other cases. |
1797 | 1796 | </description> |
1798 | 1797 | </method> |
1799 | 1798 | <method name="screen_get_orientation" qualifiers="const"> |
|
1850 | 1849 | <return type="float" /> |
1851 | 1850 | <param index="0" name="screen" type="int" default="-1" /> |
1852 | 1851 | <description> |
1853 | | - Returns the scale factor of the specified screen by index. Returns [code]1.0[/code] if [param screen] is invalid. |
| 1852 | + Returns the scale factor of the specified screen by index. Returns [code]1.0[/code] if [param screen] is invalid. See also [method screen_get_max_scale]. |
1854 | 1853 | [b]Note:[/b] One of the following constants can be used as [param screen]: [constant SCREEN_OF_MAIN_WINDOW], [constant SCREEN_PRIMARY], [constant SCREEN_WITH_MOUSE_FOCUS], or [constant SCREEN_WITH_KEYBOARD_FOCUS]. |
1855 | 1854 | [b]Note:[/b] On macOS, the returned value is [code]2.0[/code] for hiDPI (Retina) screens, and [code]1.0[/code] for all other cases. |
1856 | 1855 | [b]Note:[/b] On Linux (Wayland), the returned value is accurate only when [param screen] is [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. [code]1.25[/code] would get rounded up to [code]2.0[/code]). |
1857 | | - [b]Note:[/b] This method is implemented on Android, iOS, Web, macOS, and Linux (Wayland). On other platforms, this method always returns [code]1.0[/code]. |
| 1856 | + [b]Note:[/b] This method is implemented on Android, iOS, Web, macOS, Linux, and Windows. On other platforms, this method always returns [code]1.0[/code]. |
1858 | 1857 | </description> |
1859 | 1858 | </method> |
1860 | 1859 | <method name="screen_get_size" qualifiers="const"> |
|
0 commit comments