mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
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.
This commit is contained in:
commit
dce8cdbca8
4 changed files with 9 additions and 6 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue