summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-07-04 10:51:09 +0200
committerGitHub <noreply@github.com>2020-07-04 10:51:09 +0200
commit8ccb1cec915283f538eaf187592b850759a72a7b (patch)
treef3d64732e78a05712228605d33c457fce30ddef7 /doc
parent9cec315ec0aeb7a105a9b0828e437b7d508f6dc1 (diff)
parentdf968d577ac6d1bca223cdaec83940bfb36ade64 (diff)
downloadredot-engine-8ccb1cec915283f538eaf187592b850759a72a7b.tar.gz
Merge pull request #40084 from bruvzg/macos_seamless_scaling
[macOS] Implement seamless display scaling.
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/DisplayServer.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml
index 1fb1de2c12..d118cf8205 100644
--- a/doc/classes/DisplayServer.xml
+++ b/doc/classes/DisplayServer.xml
@@ -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">