Merge pull request #60163 from fire-forge/texture-size-x

This commit is contained in:
Rémi Verschelde 2022-04-12 16:34:08 +02:00 committed by GitHub
commit c896ba8c8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -70,7 +70,7 @@ void TexturePreview::_update_metadata_label_text() {
format = texture->get_class();
}
metadata_label->set_text(itos(texture->get_width()) + "x" + itos(texture->get_height()) + " " + format);
metadata_label->set_text(vformat(String::utf8("%s×%s %s"), itos(texture->get_width()), itos(texture->get_height()), format));
}
TexturePreview::TexturePreview(Ref<Texture2D> p_texture, bool p_show_metadata) {