mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-14 00:22:59 +00:00
[macOS] Implement seamless display scaling.
This commit is contained in:
@@ -523,6 +523,15 @@
|
||||
<description>
|
||||
</description>
|
||||
</method>
|
||||
<method name="screen_get_max_scale" qualifiers="const">
|
||||
<return type="float">
|
||||
</return>
|
||||
<description>
|
||||
Return the greatest scale factor of all screens.
|
||||
[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.
|
||||
[b]Note:[/b] This method is implemented on macOS.
|
||||
</description>
|
||||
</method>
|
||||
<method name="screen_get_orientation" qualifiers="const">
|
||||
<return type="int" enum="DisplayServer.ScreenOrientation">
|
||||
</return>
|
||||
@@ -545,6 +554,9 @@
|
||||
<argument index="0" name="screen" type="int" default="-1">
|
||||
</argument>
|
||||
<description>
|
||||
Return the scale factor of the specified screen by index.
|
||||
[b]Note:[/b] On macOS returned value is [code]2.0[/code] for hiDPI (Retina) screen, and [code]1.0[/code] for all other cases.
|
||||
[b]Note:[/b] This method is implemented on macOS.
|
||||
</description>
|
||||
</method>
|
||||
<method name="screen_get_size" qualifiers="const">
|
||||
|
||||
Reference in New Issue
Block a user