diff layer/TimeValueLayer.cpp @ 1391:c39f2d439d59 spectrogramparam

Toward highlighting peaks on spectrum
author Chris Cannam
date Tue, 13 Nov 2018 15:16:48 +0000
parents a1393b4384a5
children 28075cc658c9
line wrap: on
line diff
--- a/layer/TimeValueLayer.cpp	Tue Nov 13 14:48:42 2018 +0000
+++ b/layer/TimeValueLayer.cpp	Tue Nov 13 15:16:48 2018 +0000
@@ -565,7 +565,7 @@
     }
 
     if (!usePoints.empty()) {
-        int fuzz = 2;
+        int fuzz = ViewManager::scalePixelSize(2);
         int px = v->getXForFrame(usePoints.begin()->frame);
         if ((px > x && px - x > fuzz) ||
             (px < x && x - px > fuzz + 3)) {