summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-05-01 15:57:00 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-05-01 15:57:00 +0800
commitc2a974f04531c1da5fae03db51342265e71cb59d (patch)
treeb342ef1ec6b7ff4f772f5ae48370abf65d466735 /editor
parent5359eb57d4d191c62fdce6416f83d8e3612a367b (diff)
Keep logo aspect ratio in About dialog
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_about.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/editor_about.cpp b/editor/editor_about.cpp
index 877af41160..cd5a4f16e4 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);