1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Set main window min. size via Window object instead of DisplayServer to preserve it during window updates.

This commit is contained in:
bruvzg
2023-01-03 09:25:45 +02:00
parent c5bfe1303a
commit 06551dfa3a
4 changed files with 9 additions and 6 deletions

View File

@@ -2902,10 +2902,6 @@ bool Main::start() {
DisplayServer::get_singleton()->window_set_title(appname);
#endif
// Define a very small minimum window size to prevent bugs such as GH-37242.
// It can still be overridden by the user in a script.
DisplayServer::get_singleton()->window_set_min_size(Size2i(64, 64));
bool snap_controls = GLOBAL_GET("gui/common/snap_controls_to_pixels");
sml->get_root()->set_snap_controls_to_pixels(snap_controls);