From bb4b08e8cf0049d68396afaeef4f8a74e8b9eacd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 1 May 2020 16:15:33 +0200 Subject: [PATCH] Don't display operands, if none. --- server/TracySourceView.cpp | 77 ++++++++++++++++++++------------------ 1 file changed, 40 insertions(+), 37 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 78c02423..20a0e27e 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2141,49 +2141,52 @@ void SourceView::RenderAsmLine( const AsmLine& line, uint32_t ipcnt, uint32_t ip if( var.port != -1 ) TextFocused( "Ports:", PortList[var.port] ); ImGui::Separator(); TextFocused( "ISA set:", IsaList[var.isaSet] ); - TextDisabledUnformatted( "Operands:" ); - ImGui::SameLine(); - bool first = true; - for( int i=0; i 0 ) { - const char* t = "?"; - switch( var.desc[i].type ) + TextDisabledUnformatted( "Operands:" ); + ImGui::SameLine(); + bool first = true; + for( int i=0; i