summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-08-19 16:04:44 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-08-19 16:04:44 +0200
commit0ab62a128a12f35cb1e589b8cd33676a385bcc13 (patch)
tree6dbc03c9486ae4c5a4bef155fd9194fdb1404d58
parentea054261e27343ab78700eac94b8afcf0a45357d (diff)
parent46abbae2b02486a7e08fdf2912c0c9294a456054 (diff)
downloadredot-engine-0ab62a128a12f35cb1e589b8cd33676a385bcc13.tar.gz
Merge pull request #91971 from Delsin-Yu/WrapControls_ContentScaleFactor
Fix `Window.wrap_controls` does not account for the `content_scale_factor`
-rw-r--r--scene/main/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/window.cpp b/scene/main/window.cpp
index c2704a3848..19fb62df2e 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() {