From bf8f369e336cc707f2d3c1f9d909e172e46c12fd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 14 Oct 2017 15:29:04 +0200 Subject: [PATCH] Increase plot point active hover area. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a2320c7b..99d6b93c 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2368,7 +2368,7 @@ void View::DrawPlotPoint( const ImVec2& wpos, float x, float y, int offset, uint auto draw = ImGui::GetWindowDrawList(); draw->AddRect( wpos + ImVec2( x - 1.5f, offset + y - 1.5f ), wpos + ImVec2( x + 2.5f, offset + y + 2.5f ), color ); - if( ImGui::IsMouseHoveringRect( wpos + ImVec2( x - 1, offset ), wpos + ImVec2( x + 1, offset + PlotHeight ) ) ) + if( ImGui::IsMouseHoveringRect( wpos + ImVec2( x - 2, offset ), wpos + ImVec2( x + 2, offset + PlotHeight ) ) ) { ImGui::BeginTooltip(); ImGui::Text( "Value: %f", val );