Mercurial > hg > svgui
comparison layer/TimeRulerLayer.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 |
---|---|
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; |