From dfc4367a478f1d6c8f13aeb9d8e0be01156f5afb Mon Sep 17 00:00:00 2001 From: kobewi Date: Fri, 25 Feb 2022 01:19:24 +0100 Subject: Add expand modes to TextureRect --- editor/project_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/project_manager.cpp') diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index b4ffc7d78d..f3c607dabb 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1233,7 +1233,7 @@ void ProjectList::load_project_icon(int p_index) { // The default project icon is 128×128 to look crisp on hiDPI displays, // but we want the actual displayed size to be 64×64 on loDPI displays. - item.control->icon->set_ignore_texture_size(true); + item.control->icon->set_expand_mode(TextureRect::EXPAND_IGNORE_SIZE); item.control->icon->set_custom_minimum_size(Size2(64, 64) * EDSCALE); item.control->icon->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); -- cgit v1.2.3