comparison layer/FlexiNoteLayer.cpp @ 1395:32bbb86094c3

Merge from branch spectrogramparam
author Chris Cannam
date Wed, 14 Nov 2018 14:23:17 +0000
parents c39f2d439d59
children c8a6fd3f9dff
comparison
equal deleted inserted replaced
1380:78eecb19e688 1395:32bbb86094c3
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 }