diff layer/FlexiNoteLayer.cpp @ 1391:c39f2d439d59 spectrogramparam

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