diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-03 09:25:45 +0200 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-01-03 09:25:45 +0200 |
commit | 06551dfa3a3683d3442389f2cc7cdbe3c57034b2 (patch) | |
tree | 0e8494c89172bfea0c7db132a43fa03440e6d693 /scene | |
parent | c5bfe1303a59b92eb94371fee6a1078dd08b7309 (diff) |
Set main window min. size via Window object instead of DisplayServer to preserve it during window updates.
Diffstat (limited to 'scene')
-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 e61cca0a0f..cc2031695a 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -1397,6 +1397,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")); |