Adapt minimum samples distance to DPI scaling.

This commit is contained in:
Bartosz Taudul 2021-11-20 13:51:42 +01:00
parent 8d65b190d6
commit 3e78c826cf
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -4175,7 +4175,7 @@ void View::DrawSamples( const Vector<SampleData>& 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 )