From 46abbae2b02486a7e08fdf2912c0c9294a456054 Mon Sep 17 00:00:00 2001 From: DE-YU Date: Wed, 15 May 2024 15:23:18 +0800 Subject: [PATCH] Fix Window.wrap_controls does not account for the content_scale_factor --- scene/main/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/main/window.cpp b/scene/main/window.cpp index c2704a38487..19fb62df2e5 100644 --- a/scene/main/window.cpp +++ b/scene/main/window.cpp @@ -1602,7 +1602,7 @@ Size2 Window::_get_contents_minimum_size() const { } } - return max; + return max * content_scale_factor; } void Window::child_controls_changed() {