diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2021-08-22 09:08:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 09:08:33 +0200 |
commit | 337574d7f279851f4ba0028a9f515ba509557e73 (patch) | |
tree | 434c04478b70937e5ea846255c013f22615a169d /main | |
parent | 57e3a1a95176bb45cd15cbb657bc984826f59000 (diff) | |
parent | f02a040d48bc53ce8d90085b809db9a66c6ff2de (diff) |
Merge pull request #37260 from Calinou/define-minimum-window-size
Define a default minimum window size to workaround rendering issues
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index ee2f22797a..5a2aaa8b8f 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -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); |