Mercurial > hg > svgui
comparison 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 |
comparison
equal
deleted
inserted
replaced
1390:3c99083a4d83 | 1391:c39f2d439d59 |
---|---|
437 frame - prevPoints.begin()->frame) { | 437 frame - prevPoints.begin()->frame) { |
438 usePoints = nextPoints; | 438 usePoints = nextPoints; |
439 } | 439 } |
440 | 440 |
441 if (!usePoints.empty()) { | 441 if (!usePoints.empty()) { |
442 int fuzz = 2; | 442 int fuzz = ViewManager::scalePixelSize(2); |
443 int px = v->getXForFrame(usePoints.begin()->frame); | 443 int px = v->getXForFrame(usePoints.begin()->frame); |
444 if ((px > x && px - x > fuzz) || | 444 if ((px > x && px - x > fuzz) || |
445 (px < x && x - px > fuzz + 1)) { | 445 (px < x && x - px > fuzz + 1)) { |
446 usePoints.clear(); | 446 usePoints.clear(); |
447 } | 447 } |