From fd2918eaf2e53e709fd35aa10a4ea67d07b50694 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 22:27:36 +0200 Subject: [PATCH] Normalize frames in find zone view callstack. --- server/TracyView_FindZone.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server/TracyView_FindZone.cpp b/server/TracyView_FindZone.cpp index 8394cb90..411c79fa 100644 --- a/server/TracyView_FindZone.cpp +++ b/server/TracyView_FindZone.cpp @@ -1647,7 +1647,16 @@ void View::DrawFindZone() TextDisabledUnformatted( ICON_FA_CARET_RIGHT ); } ImGui::SameLine(); - ImGui::TextUnformatted( txt ); + if( m_shortenName == ShortenName::Never ) + { + ImGui::TextUnformatted( txt ); + } + else + { + const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, txt ); + ImGui::TextUnformatted( normalized ); + TooltipNormalizedName( txt, normalized ); + } } } }