Keep logo aspect ratio in About dialog
This commit is contained in:
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user