From ef35c01e14c73c44c74861ac3e882a1adcfd5454 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 17 Aug 2022 00:30:07 +0200 Subject: [PATCH] Highlight jump line on hover over jump target label. --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 35cc95ff..54c4de3c 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2471,7 +2471,7 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker const auto y0 = ( it0 == insList.end() || *it0 != v.second.min ) ? -th : ( it0 - insList.begin() ) * th; const auto y1 = it1 == insList.end() ? ( insList.size() + 1 ) * th : ( it1 - insList.begin() ) * th; - float thickness = 1; + float thickness = m_highlightAddr == v.first ? 2 : 1; if( ImGui::IsWindowHovered() && ImGui::IsMouseHoveringRect( wpos + ImVec2( xoff + JumpSeparation * ( mjl - v.second.level ) - JumpSeparation / 2, y0 + th2 ), wpos + ImVec2( xoff + JumpSeparation * ( mjl - v.second.level ) + JumpSeparation / 2, y1 + th2 ) ) ) { thickness = 2;