|
@@ -2242,6 +2242,10 @@ bool Main::start() {
|
|
DisplayServer::get_singleton()->window_set_title(appname);
|
|
DisplayServer::get_singleton()->window_set_title(appname);
|
|
#endif
|
|
#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_DEF("gui/common/snap_controls_to_pixels", true);
|
|
bool snap_controls = GLOBAL_DEF("gui/common/snap_controls_to_pixels", true);
|
|
sml->get_root()->set_snap_controls_to_pixels(snap_controls);
|
|
sml->get_root()->set_snap_controls_to_pixels(snap_controls);
|
|
|
|
|