From 5d439c016534c13256deb6582a08e4386fbca43d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 30 Dec 2021 16:35:18 +0100 Subject: [PATCH] Round jump separation. --- server/TracySourceView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 20c3888b..4927ca96 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2377,7 +2377,7 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker const auto maxAddr = m_asm[clipper.DisplayEnd-1].addr; const auto mjl = m_maxJumpLevel; const auto JumpArrow = JumpArrowBase * ts.y / 15; - const auto JumpSeparation = JumpSeparationBase * ts.y / 15; + const auto JumpSeparation = round( JumpSeparationBase * ts.y / 15 ); int i = -1; for( auto& v : m_jumpTable ) @@ -3565,7 +3565,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr m_jumpOffset = xoff; const auto JumpArrow = JumpArrowBase * ty / 15; - const auto JumpSeparation = JumpSeparationBase * ts.y / 15; + const auto JumpSeparation = round( JumpSeparationBase * ts.y / 15 ); ImGui::SameLine( 0, ty + JumpArrow + m_maxJumpLevel * JumpSeparation ); auto jit = m_jumpOut.find( line.addr ); if( jit != m_jumpOut.end() )