mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Do not recalculate sty.
This commit is contained in:
parent
f2a2669ca8
commit
bb9219384f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user