Fix typo.

This commit is contained in:
Bartosz Taudul 2024-10-27 11:30:50 +01:00
parent 869d75f53e
commit 92241fc0a4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -257,7 +257,7 @@ struct FlameGraphContext
float ty; float ty;
float ostep; float ostep;
double pxns; double pxns;
double nxps; double nspx;
}; };
void View::DrawFlameGraphLevel( const std::vector<FlameGraphItem>& data, FlameGraphContext& ctx, uint64_t ts, int depth, bool samples ) void View::DrawFlameGraphLevel( const std::vector<FlameGraphItem>& data, FlameGraphContext& ctx, uint64_t ts, int depth, bool samples )
@ -727,7 +727,7 @@ void View::DrawFlameGraph()
ctx.ty = ImGui::GetTextLineHeight(); ctx.ty = ImGui::GetTextLineHeight();
ctx.ostep = ctx.ty + 1; ctx.ostep = ctx.ty + 1;
ctx.pxns = region.x / zsz; ctx.pxns = region.x / zsz;
ctx.nxps = 1.0 / ctx.pxns; ctx.nspx = 1.0 / ctx.pxns;
ImGui::ItemSize( region ); ImGui::ItemSize( region );
DrawFlameGraphLevel( m_flameGraphData, ctx, 0, 0, m_flameMode == 1 ); DrawFlameGraphLevel( m_flameGraphData, ctx, 0, 0, m_flameMode == 1 );