Keep logo aspect ratio in About dialog

This commit is contained in:
Haoyu Qiu 2022-05-01 15:57:00 +08:00
parent 5359eb57d4
commit c2a974f045
1 changed files with 1 additions and 0 deletions

View File

@ -129,6 +129,7 @@ EditorAbout::EditorAbout() {
vbc->add_child(hbc); vbc->add_child(hbc);
_logo = memnew(TextureRect); _logo = memnew(TextureRect);
_logo->set_stretch_mode(TextureRect::STRETCH_KEEP_ASPECT_CENTERED);
hbc->add_child(_logo); hbc->add_child(_logo);
VBoxContainer *version_info_vbc = memnew(VBoxContainer); VBoxContainer *version_info_vbc = memnew(VBoxContainer);