comparison layer/TimeRulerLayer.cpp @ 1391:c39f2d439d59 spectrogramparam

Toward highlighting peaks on spectrum
author Chris Cannam
date Tue, 13 Nov 2018 15:16:48 +0000
parents dddfd28e4f02
children c8a6fd3f9dff
comparison
equal deleted inserted replaced
1390:3c99083a4d83 1391:c39f2d439d59
111 if (right > v->getStartFrame() && 111 if (right > v->getStartFrame() &&
112 right < v->getEndFrame()) { 112 right < v->getEndFrame()) {
113 dr = abs(v->getXForFrame(right) - x); 113 dr = abs(v->getXForFrame(right) - x);
114 } 114 }
115 115
116 int fuzz = 2; 116 int fuzz = ViewManager::scalePixelSize(2);
117 117
118 if (dl >= 0 && dr >= 0) { 118 if (dl >= 0 && dr >= 0) {
119 if (dl < dr) { 119 if (dl < dr) {
120 if (dl <= fuzz) { 120 if (dl <= fuzz) {
121 frame = left; 121 frame = left;