From 993c78f045cce8d4875923a82588da7a0f3565fb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 1 May 2023 12:50:48 +0200 Subject: [PATCH] Fix thread context switch offset. --- server/TracyView_ContextSwitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView_ContextSwitch.cpp b/server/TracyView_ContextSwitch.cpp index 55448a6e..4222d605 100644 --- a/server/TracyView_ContextSwitch.cpp +++ b/server/TracyView_ContextSwitch.cpp @@ -143,7 +143,7 @@ void View::DrawContextSwitchList( const TimelineContext& ctx, const std::vector< const auto pxns = ctx.pxns; const auto hover = ctx.hover; const auto w = ctx.w; - const auto ty = ctx.ty; + const auto ty = round( ctx.ty * 0.75f ); const auto lineSize = 2 * GetScale(); auto draw = ImGui::GetWindowDrawList();