Print symbol name in symbol view with big font.

This commit is contained in:
Bartosz Taudul 2022-08-15 22:53:14 +02:00
parent fa0322f6b4
commit 00e0187506
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1093,6 +1093,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
const auto shortenName = view.GetShortenName(); const auto shortenName = view.GetShortenName();
auto sym = worker.GetSymbolData( m_symAddr ); auto sym = worker.GetSymbolData( m_symAddr );
assert( sym ); assert( sym );
ImGui::PushFont( m_bigFont );
if( sym->isInline ) if( sym->isInline )
{ {
auto parent = worker.GetSymbolData( m_baseAddr ); auto parent = worker.GetSymbolData( m_baseAddr );
@ -1107,7 +1108,9 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{ {
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName ); const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized ); TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
ImGui::PopFont();
TooltipNormalizedName( symName, normalized ); TooltipNormalizedName( symName, normalized );
ImGui::PushFont( m_bigFont );
} }
} }
else else
@ -1128,13 +1131,16 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{ {
const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName ); const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName );
TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized ); TextFocused( ICON_FA_PUZZLE_PIECE " Symbol:", normalized );
ImGui::PopFont();
TooltipNormalizedName( symName, normalized ); TooltipNormalizedName( symName, normalized );
ImGui::PushFont( m_bigFont );
} }
} }
ImGui::SameLine(); ImGui::SameLine();
TextDisabledUnformatted( worker.GetString( sym->imageName ) ); TextDisabledUnformatted( worker.GetString( sym->imageName ) );
ImGui::SameLine(); ImGui::SameLine();
ImGui::TextDisabled( "0x%" PRIx64, m_baseAddr ); ImGui::TextDisabled( "0x%" PRIx64, m_baseAddr );
ImGui::PopFont();
const bool limitView = view.m_statRange.active; const bool limitView = view.m_statRange.active;
auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen ); auto inlineList = worker.GetInlineSymbolList( m_baseAddr, m_codeLen );