From c2a974f04531c1da5fae03db51342265e71cb59d Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sun, 1 May 2022 15:57:00 +0800 Subject: [PATCH] Keep logo aspect ratio in About dialog --- editor/editor_about.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_about.cpp b/editor/editor_about.cpp index 877af41160c..cd5a4f16e4f 100644 --- a/editor/editor_about.cpp +++ b/editor/editor_about.cpp @@ -129,6 +129,7 @@ EditorAbout::EditorAbout() { vbc->add_child(hbc); _logo = memnew(TextureRect); + _logo->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED); hbc->add_child(_logo); VBoxContainer *version_info_vbc = memnew(VBoxContainer);