From b1aca6acf99f1f79b0f0dd1a279ab74ac2e90a39 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 21:54:29 +0200 Subject: [PATCH] Show original name in tooltip in sample parents window. --- server/TracyView_Samples.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server/TracyView_Samples.cpp b/server/TracyView_Samples.cpp index 5509af29..a3d436c7 100644 --- a/server/TracyView_Samples.cpp +++ b/server/TracyView_Samples.cpp @@ -673,6 +673,12 @@ void View::DrawSampleParents() const char* normalized = m_shortenName != ShortenName::Never ? ShortenZoneName( ShortenName::OnlyNormalize, symName ) : nullptr; ImGui::PushFont( m_bigFont ); TextFocused( "Symbol:", normalized ? normalized : symName ); + if( normalized ) + { + ImGui::PopFont(); + TooltipNormalizedName( symName, normalized ); + ImGui::PushFont( m_bigFont ); + } if( symbol->isInline ) { ImGui::SameLine(); @@ -684,12 +690,6 @@ void View::DrawSampleParents() TextDisabledUnformatted( "(without inlines)" ); } ImGui::PopFont(); - if( normalized && normalized != symName && strcmp( normalized, symName ) != 0 ) - { - ImGui::PushFont( m_smallFont ); - TextDisabledUnformatted( symName ); - ImGui::PopFont(); - } TextDisabledUnformatted( "Location:" ); ImGui::SameLine(); const auto callFile = m_worker.GetString( symbol->callFile );