diff layer/RegionLayer.cpp @ 1391:c39f2d439d59 spectrogramparam

Toward highlighting peaks on spectrum
author Chris Cannam
date Tue, 13 Nov 2018 15:16:48 +0000
parents d79e21855aef
children c8a6fd3f9dff 24234307c9b2
line wrap: on
line diff
--- a/layer/RegionLayer.cpp	Tue Nov 13 14:48:42 2018 +0000
+++ b/layer/RegionLayer.cpp	Tue Nov 13 15:16:48 2018 +0000
@@ -335,7 +335,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 + 1)) {