From 76f3207bc4c4c599f99ce9d0460bfcd1283756ff Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 9 May 2022 00:37:59 +0200 Subject: [PATCH] Restore the intended spacing for extra asm comments. --- server/TracySourceView.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 60663a99..be2c7d2d 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -4068,7 +4068,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr if( lit != m_locMap.end() ) { ImGui::SameLine(); - ImGui::TextDisabled( "; .L%" PRIu32, lit->second ); + ImGui::TextDisabled( " ; .L%" PRIu32, lit->second ); } if( line.regData[0] != 0 ) @@ -4083,7 +4083,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr { ImGui::SameLine( 0, 0 ); } - TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), "{" ); + TextColoredUnformatted( ImVec4( 0.5f, 0.5, 1, 1 ), " {" ); ImGui::SameLine( 0, 0 ); int idx = 0; for(;;) @@ -4123,7 +4123,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr ImGui::SameLine(); if( jumpBase == m_baseAddr ) { - ImGui::TextDisabled( "-> [%s+%" PRIu32"]", jumpName, jumpOffset ); + ImGui::TextDisabled( " -> [%s+%" PRIu32"]", jumpName, jumpOffset ); if( ImGui::IsItemHovered() ) { m_highlightAddr = line.jumpAddr; @@ -4137,7 +4137,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr } else { - ImGui::TextDisabled( "[%s+%" PRIu32"]", jumpName, jumpOffset ); + ImGui::TextDisabled( " [%s+%" PRIu32"]", jumpName, jumpOffset ); if( ImGui::IsItemClicked() ) jumpOut = line.jumpAddr; } }