1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-30 04:43:53 +00:00

Restore the intended spacing for extra asm comments.

This commit is contained in:
Bartosz Taudul 2022-05-09 00:37:59 +02:00
parent 0a432ed349
commit 76f3207bc4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -4068,7 +4068,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
if( lit != m_locMap.end() ) if( lit != m_locMap.end() )
{ {
ImGui::SameLine(); ImGui::SameLine();
ImGui::TextDisabled( "; .L%" PRIu32, lit->second ); ImGui::TextDisabled( " ; .L%" PRIu32, lit->second );
} }
if( line.regData[0] != 0 ) if( line.regData[0] != 0 )
@ -4083,7 +4083,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
{ {
ImGui::SameLine( 0, 0 ); ImGui::SameLine( 0, 0 );
} }
TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), "{" ); TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), " {" );
ImGui::SameLine( 0, 0 ); ImGui::SameLine( 0, 0 );
int idx = 0; int idx = 0;
for(;;) for(;;)
@ -4123,7 +4123,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
ImGui::SameLine(); ImGui::SameLine();
if( jumpBase == m_baseAddr ) if( jumpBase == m_baseAddr )
{ {
ImGui::TextDisabled( "-> [%s+%" PRIu32"]", jumpName, jumpOffset ); ImGui::TextDisabled( " -> [%s+%" PRIu32"]", jumpName, jumpOffset );
if( ImGui::IsItemHovered() ) if( ImGui::IsItemHovered() )
{ {
m_highlightAddr = line.jumpAddr; m_highlightAddr = line.jumpAddr;
@ -4137,7 +4137,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
} }
else else
{ {
ImGui::TextDisabled( "[%s+%" PRIu32"]", jumpName, jumpOffset ); ImGui::TextDisabled( " [%s+%" PRIu32"]", jumpName, jumpOffset );
if( ImGui::IsItemClicked() ) jumpOut = line.jumpAddr; if( ImGui::IsItemClicked() ) jumpOut = line.jumpAddr;
} }
} }