From eee6cb06fa54e6262312231ff747e8d4d2357c7b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 9 Sep 2022 00:32:13 +0200 Subject: [PATCH] Align jump arrows to pixel boundaries. --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 844c60d4..5b54deaf 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -3735,7 +3735,7 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr if( m_showJumps ) { ImGui::SameLine( 0, 0 ); - const auto xoff = ImGui::GetCursorScreenPos().x - wpos.x + round( ty * 0.66f ); + const auto xoff = round( ImGui::GetCursorScreenPos().x - wpos.x + ( ty * 0.66f ) ); m_jumpOffset = xoff; const auto JumpArrow = JumpArrowBase * ty / 15;