From 697d1f0cad072c40f92f9fca0d6bd0c7c379a0b1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 21:33:25 +0200 Subject: [PATCH] Fully shorten frame names in one-line callstack calls. --- server/TracyView_Callstack.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/TracyView_Callstack.cpp b/server/TracyView_Callstack.cpp index e3746f22..6286335d 100644 --- a/server/TracyView_Callstack.cpp +++ b/server/TracyView_Callstack.cpp @@ -405,10 +405,14 @@ void View::DrawCallstackCalls( uint32_t callstack, uint16_t limit ) const { TextDisabledUnformatted( txt ); } - else + else if( m_shortenName == ShortenName::Never ) { ImGui::TextUnformatted( txt ); } + else + { + ImGui::TextUnformatted( ShortenZoneName( ShortenName::Always, txt ) ); + } } }