Browse Source

Keep logo aspect ratio in About dialog

Haoyu Qiu 3 years ago
parent
commit
c2a974f045
1 changed files with 1 additions and 0 deletions
  1. 1 0
      editor/editor_about.cpp

+ 1 - 0
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);