Skip to content

Commit 5caeffa

Browse files
committed
Proper way to detect mouse click.
1 parent e8a9d22 commit 5caeffa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎profiler/src/profiler/TracyView_FlameGraph.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "TracyColor.hpp"
44
#include "TracyEvent.hpp"
55
#include "TracyImGui.hpp"
6+
#include "TracyMouse.hpp"
67
#include "TracyPrint.hpp"
78
#include "TracyVector.hpp"
89
#include "TracyView.hpp"
@@ -343,7 +344,7 @@ void View::DrawFlameGraphItem( const FlameGraphItem& item, FlameGraphContext& ct
343344
}
344345
ImGui::EndTooltip();
345346

346-
if( ImGui::IsMouseClicked( 0 ) )
347+
if( IsMouseClicked( 0 ) )
347348
{
348349
m_findZone.ShowZone( item.srcloc, slName );
349350
}

0 commit comments

Comments
 (0)