diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2020-03-23 22:09:22 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-08-22 08:19:49 +0200 |
commit | f02a040d48bc53ce8d90085b809db9a66c6ff2de (patch) | |
tree | f904d8ae58085c60a9c9d2ca7ee6c7f8a8e88d96 /doc/classes | |
parent | ba96f31fad96b42d10a54fe968cee484b03d1bb5 (diff) |
Define a default minimum window size to workaround rendering issues
The minimum window size can still be set to `Vector2(0, 0)` in a script
if needed.
This closes #37242.
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/DisplayServer.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/DisplayServer.xml b/doc/classes/DisplayServer.xml index abb715b34e..4f495eaec9 100644 --- a/doc/classes/DisplayServer.xml +++ b/doc/classes/DisplayServer.xml @@ -649,6 +649,8 @@ <argument index="0" name="min_size" type="Vector2i" /> <argument index="1" name="window_id" type="int" default="0" /> <description> + Sets the minimum size for the given window to [code]min_size[/code] (in pixels). + [b]Note:[/b] By default, the main window has a minimum size of [code]Vector2i(64, 64)[/code]. This prevents issues that can arise when the window is resized to a near-zero size. </description> </method> <method name="window_set_mode"> |