From 92241fc0a48bddf36c4b6d6292eeca915ab8d853 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 27 Oct 2024 11:30:50 +0100 Subject: [PATCH] Fix typo. --- profiler/src/profiler/TracyView_FlameGraph.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyView_FlameGraph.cpp b/profiler/src/profiler/TracyView_FlameGraph.cpp index 3ad917e0..e3aff9bc 100644 --- a/profiler/src/profiler/TracyView_FlameGraph.cpp +++ b/profiler/src/profiler/TracyView_FlameGraph.cpp @@ -257,7 +257,7 @@ struct FlameGraphContext float ty; float ostep; double pxns; - double nxps; + double nspx; }; void View::DrawFlameGraphLevel( const std::vector& data, FlameGraphContext& ctx, uint64_t ts, int depth, bool samples ) @@ -727,7 +727,7 @@ void View::DrawFlameGraph() ctx.ty = ImGui::GetTextLineHeight(); ctx.ostep = ctx.ty + 1; ctx.pxns = region.x / zsz; - ctx.nxps = 1.0 / ctx.pxns; + ctx.nspx = 1.0 / ctx.pxns; ImGui::ItemSize( region ); DrawFlameGraphLevel( m_flameGraphData, ctx, 0, 0, m_flameMode == 1 );