1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Align jump arrows to pixel boundaries.

This commit is contained in:
Bartosz Taudul
2022-09-09 00:32:13 +02:00
parent 0e930a2c13
commit eee6cb06fa
+1 -1
View File
@@ -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;