From 3e78c826cf85fc6a23ac688537a3b412d9a8d99c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 20 Nov 2021 13:51:42 +0100 Subject: [PATCH] Adapt minimum samples distance to DPI scaling. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b8393ed5..265bed7f 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4175,7 +4175,7 @@ void View::DrawSamples( const Vector& vec, bool hover, double pxns, const auto y1 = ty0375 + ty02 - 1; auto draw = ImGui::GetWindowDrawList(); - enum { MinVis = 6 }; + const auto MinVis = 6 * GetScale(); bool tooltipDisplayed = false; while( it < itend )