Explorar o código

Merge pull request #91971 from Delsin-Yu/WrapControls_ContentScaleFactor

Fix `Window.wrap_controls` does not account for the `content_scale_factor`
Rémi Verschelde hai 1 ano
pai
achega
0ab62a128a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scene/main/window.cpp

+ 1 - 1
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() {