Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-09-09 01:32:13 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-09-09 01:32:13 +0300
commiteee6cb06fa54e6262312231ff747e8d4d2357c7b (patch)
tree87f64af1ddc498b718da562cc151ffbf6e2eb39f /server
parent0e930a2c13a4cc6ec06cd6cd5a170d42a777c67c (diff)
Align jump arrows to pixel boundaries.
Diffstat (limited to 'server')
-rw-r--r--server/TracySourceView.cpp2
1 files changed, 1 insertions, 1 deletions
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;