From 8592620a8eb779aa943e7ece2ef79db59264a0bc Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Tue, 6 Jul 2021 21:59:26 +0200 Subject: [PATCH] Use the Unicode multiplication symbol for the viewport size display --- editor/plugins/spatial_editor_plugin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 731312e7bde..529339f8967 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -2456,6 +2456,7 @@ void SpatialEditorViewport::_notification(int p_what) { } if (show_info) { + const String viewport_size = vformat(String::utf8("%d × %d"), viewport->get_size().x, viewport->get_size().y); String text; text += "X: " + rtos(current_camera->get_translation().x).pad_decimals(1) + "\n"; text += "Y: " + rtos(current_camera->get_translation().y).pad_decimals(1) + "\n"; @@ -2465,9 +2466,8 @@ void SpatialEditorViewport::_notification(int p_what) { text += TTR("Size") + vformat( - ": %dx%d (%.1fMP)\n", - viewport->get_size().x, - viewport->get_size().y, + ": %s (%.1fMP)\n", + viewport_size, viewport->get_size().x * viewport->get_size().y * 0.000'001); text += TTR("Objects Drawn") + ": " + itos(viewport->get_render_info(Viewport::RENDER_INFO_OBJECTS_IN_FRAME)) + "\n"; text += TTR("Material Changes") + ": " + itos(viewport->get_render_info(Viewport::RENDER_INFO_MATERIAL_CHANGES_IN_FRAME)) + "\n";