Don't recalculate sty.

This commit is contained in:
Bartosz Taudul 2023-04-05 19:24:58 +02:00
parent f48415315a
commit 51f832c031
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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;