1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Always show full symbol name in ghost zone popups.

This commit is contained in:
Bartosz Taudul 2021-01-31 20:49:49 +01:00
parent f89fd4ab04
commit 53505373c7

View File

@ -4136,6 +4136,7 @@ int View::DrawGhostLevel( const Vector<GhostZone>& vec, bool hover, double pxns,
draw->AddRectFilled( wpos + ImVec2( px0, offset ), wpos + ImVec2( px1, offset + tsz.y ), col ); 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 ); draw->AddRect( wpos + ImVec2( px0, offset ), wpos + ImVec2( px1, offset + tsz.y ), outline, 0.f, -1 );
auto origSymName = symName;
if( tsz.x > zsz ) if( tsz.x > zsz )
{ {
symName = ShortenNamespace( symName ); symName = ShortenNamespace( symName );
@ -4173,7 +4174,7 @@ int View::DrawGhostLevel( const Vector<GhostZone>& vec, bool hover, double pxns,
ImGui::BeginTooltip(); ImGui::BeginTooltip();
TextDisabledUnformatted( ICON_FA_GHOST " Ghost zone" ); TextDisabledUnformatted( ICON_FA_GHOST " Ghost zone" );
ImGui::Separator(); ImGui::Separator();
ImGui::TextUnformatted( symName ); ImGui::TextUnformatted( origSymName );
if( isInline ) if( isInline )
{ {
ImGui::SameLine(); ImGui::SameLine();