comparison layer/NoteLayer.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
419 frame - int(prevPoints.begin()->frame)) { 419 frame - int(prevPoints.begin()->frame)) {
420 usePoints = nextPoints; 420 usePoints = nextPoints;
421 } 421 }
422 422
423 if (!usePoints.empty()) { 423 if (!usePoints.empty()) {
424 int fuzz = 2; 424 int fuzz = ViewManager::scalePixelSize(2);
425 int px = v->getXForFrame(usePoints.begin()->frame); 425 int px = v->getXForFrame(usePoints.begin()->frame);
426 if ((px > x && px - x > fuzz) || 426 if ((px > x && px - x > fuzz) ||
427 (px < x && x - px > fuzz + 1)) { 427 (px < x && x - px > fuzz + 1)) {
428 usePoints.clear(); 428 usePoints.clear();
429 } 429 }