diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-09 23:08:52 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-09 23:08:52 +0100 |
commit | dce8cdbca861605b1be8621db5be82dca6174811 (patch) | |
tree | 270e8e92b3b32dee0568bde3ff28c6853c45c1d5 /scene/main | |
parent | be4e9dfeab0cef7efb78d4ce891caed050a42b3b (diff) | |
parent | 06551dfa3a3683d3442389f2cc7cdbe3c57034b2 (diff) |
Merge pull request #70863 from bruvzg/win_init_min
Set main window min. size via Window object instead of DisplayServer to preserve it during window updates.
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/scene_tree.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 73d85a0660..c6bfe5742f 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1396,6 +1396,7 @@ SceneTree::SceneTree() { // Create with mainloop. root = memnew(Window); + root->set_min_size(Size2i(64, 64)); // Define a very small minimum window size to prevent bugs such as GH-37242. root->set_process_mode(Node::PROCESS_MODE_PAUSABLE); root->set_name("root"); root->set_title(GLOBAL_GET("application/config/name")); |