From 53505373c75e375a7e7bf842e1a4dedf1004dfc1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 31 Jan 2021 20:49:49 +0100 Subject: [PATCH] Always show full symbol name in ghost zone popups. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 70033f92..009344b1 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4136,6 +4136,7 @@ int View::DrawGhostLevel( const Vector& vec, bool hover, double pxns, draw->AddRectFilled( wpos + ImVec2( px0, offset ), wpos + ImVec2( px1, offset + tsz.y ), col ); draw->AddRect( wpos + ImVec2( px0, offset ), wpos + ImVec2( px1, offset + tsz.y ), outline, 0.f, -1 ); + auto origSymName = symName; if( tsz.x > zsz ) { symName = ShortenNamespace( symName ); @@ -4173,7 +4174,7 @@ int View::DrawGhostLevel( const Vector& vec, bool hover, double pxns, ImGui::BeginTooltip(); TextDisabledUnformatted( ICON_FA_GHOST " Ghost zone" ); ImGui::Separator(); - ImGui::TextUnformatted( symName ); + ImGui::TextUnformatted( origSymName ); if( isInline ) { ImGui::SameLine();