Do not recalculate sty.

This commit is contained in:
Bartosz Taudul 2023-04-05 18:44:36 +02:00
parent f2a2669ca8
commit bb9219384f
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -23,6 +23,7 @@ bool View::DrawCpuData( const TimelineContext& ctx, const std::vector<CpuUsageDr
const auto& wpos = ctx.wpos; const auto& wpos = ctx.wpos;
const auto w = ctx.w; const auto w = ctx.w;
const auto ty = ctx.ty; const auto ty = ctx.ty;
const auto sty = ctx.sty;
const auto pxns = ctx.pxns; const auto pxns = ctx.pxns;
const auto nspxdbl = ctx.nspx; const auto nspxdbl = ctx.nspx;
const auto nspx = int64_t( nspxdbl ); const auto nspx = int64_t( nspxdbl );
@ -141,7 +142,6 @@ bool View::DrawCpuData( const TimelineContext& ctx, const std::vector<CpuUsageDr
} }
ImGui::PushFont( m_smallFont ); ImGui::PushFont( m_smallFont );
const auto sty = round( ImGui::GetTextLineHeight() );
const auto sstep = sty + 1; const auto sstep = sty + 1;
const auto origOffset = offset; const auto origOffset = offset;