mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Define a default minimum window size to workaround rendering issues
The minimum window size can still be set to `Vector2(0, 0)` in a script if needed. This closes #37242.
This commit is contained in:
parent
ba96f31fad
commit
f02a040d48
2 changed files with 6 additions and 0 deletions
|
|
@ -2242,6 +2242,10 @@ 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_DEF("gui/common/snap_controls_to_pixels", true);
|
||||
sml->get_root()->set_snap_controls_to_pixels(snap_controls);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue