1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20: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 commit is contained in:
Hugo Locurcio
2021-08-22 09:11:21 +02:00
parent 16642e2838
commit 59f24d8867
2 changed files with 6 additions and 1 deletions

View File

@@ -1878,6 +1878,10 @@ bool Main::start() {
OS::get_singleton()->set_window_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.
OS::get_singleton()->set_min_window_size(Size2(64, 64));
int shadow_atlas_size = GLOBAL_GET("rendering/quality/shadow_atlas/size");
int shadow_atlas_q0_subdiv = GLOBAL_GET("rendering/quality/shadow_atlas/quadrant_0_subdiv");
int shadow_atlas_q1_subdiv = GLOBAL_GET("rendering/quality/shadow_atlas/quadrant_1_subdiv");