From 5caeffa19a594d37c56ef3c9c78ce025a0081c2f Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Sep 2024 15:30:41 +0200 Subject: [PATCH] Proper way to detect mouse click. --- profiler/src/profiler/TracyView_FlameGraph.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_FlameGraph.cpp b/profiler/src/profiler/TracyView_FlameGraph.cpp index 61822fc3..976f3532 100644 --- a/profiler/src/profiler/TracyView_FlameGraph.cpp +++ b/profiler/src/profiler/TracyView_FlameGraph.cpp @@ -3,6 +3,7 @@ #include "TracyColor.hpp" #include "TracyEvent.hpp" #include "TracyImGui.hpp" +#include "TracyMouse.hpp" #include "TracyPrint.hpp" #include "TracyVector.hpp" #include "TracyView.hpp" @@ -343,7 +344,7 @@ void View::DrawFlameGraphItem( const FlameGraphItem& item, FlameGraphContext& ct } ImGui::EndTooltip(); - if( ImGui::IsMouseClicked( 0 ) ) + if( IsMouseClicked( 0 ) ) { m_findZone.ShowZone( item.srcloc, slName ); }