comparison layer/TimeValueLayer.cpp @ 1395:32bbb86094c3

Merge from branch spectrogramparam
author Chris Cannam
date Wed, 14 Nov 2018 14:23:17 +0000
parents c39f2d439d59
children 28075cc658c9
comparison
equal deleted inserted replaced
1380:78eecb19e688 1395:32bbb86094c3
563 frame - prevPoints.begin()->frame) { 563 frame - prevPoints.begin()->frame) {
564 usePoints = nextPoints; 564 usePoints = nextPoints;
565 } 565 }
566 566
567 if (!usePoints.empty()) { 567 if (!usePoints.empty()) {
568 int fuzz = 2; 568 int fuzz = ViewManager::scalePixelSize(2);
569 int px = v->getXForFrame(usePoints.begin()->frame); 569 int px = v->getXForFrame(usePoints.begin()->frame);
570 if ((px > x && px - x > fuzz) || 570 if ((px > x && px - x > fuzz) ||
571 (px < x && x - px > fuzz + 3)) { 571 (px < x && x - px > fuzz + 3)) {
572 usePoints.clear(); 572 usePoints.clear();
573 } 573 }