From e19a981b8cdc9626bc66a9a975db79d8373df1e2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 4 Jun 2020 19:39:43 +0200 Subject: [PATCH] Fix display of unknown source locations in asm view. --- server/TracySourceView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 99918a8c..a10b0d7f 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2483,8 +2483,10 @@ void SourceView::RenderAsmLine( AsmLine& line, uint32_t ipcnt, uint32_t iptotal, else { SmallColorBox( 0 ); + ImGui::SameLine(); + TextDisabledUnformatted( "[unknown]" ); ImGui::SameLine( 0, 0 ); - ImGui::ItemSize( ImVec2( stw * 32, ty ), 0 ); + ImGui::ItemSize( ImVec2( stw * 23, ty ), 0 ); } } if( m_asmBytes )