From 51f832c0318fa75863cac19e46f4d4b2d4bfd8eb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 5 Apr 2023 19:24:58 +0200 Subject: [PATCH] Don't recalculate sty. --- server/TracyView_ZoneTimeline.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/server/TracyView_ZoneTimeline.cpp b/server/TracyView_ZoneTimeline.cpp index e898d073..e23965bf 100644 --- a/server/TracyView_ZoneTimeline.cpp +++ b/server/TracyView_ZoneTimeline.cpp @@ -32,11 +32,8 @@ void View::DrawThread( const TimelineContext& ctx, const ThreadData& thread, con const auto hover = ctx.hover; const auto yMin = ctx.yMin; const auto yMax = ctx.yMax; - - ImGui::PushFont( m_smallFont ); - const auto sty = ImGui::GetTextLineHeight(); + const auto sty = ctx.sty; const auto sstep = sty + 1; - ImGui::PopFont(); const auto sampleOffset = offset; const auto hasSamples = m_vd.drawSamples && _hasSamples;