Mercurial > hg > svgui
comparison layer/TextLayer.cpp @ 1552:045063dcd2bc
Merge
author | Chris Cannam |
---|---|
date | Thu, 21 Nov 2019 14:03:19 +0000 |
parents | e95cefd4aa81 |
children |
comparison
equal
deleted
inserted
replaced
1551:e79731086b0f | 1552:045063dcd2bc |
---|---|
297 sv_samplerate_t sampleRate = model->getSampleRate(); | 297 sv_samplerate_t sampleRate = model->getSampleRate(); |
298 if (!sampleRate) return; | 298 if (!sampleRate) return; |
299 | 299 |
300 // Profiler profiler("TextLayer::paint", true); | 300 // Profiler profiler("TextLayer::paint", true); |
301 | 301 |
302 int x0 = rect.left(), x1 = rect.right(); | 302 int x0 = rect.left(); |
303 int x1 = x0 + rect.width(); | |
304 | |
303 int overlap = ViewManager::scalePixelSize(150); | 305 int overlap = ViewManager::scalePixelSize(150); |
304 sv_frame_t frame0 = v->getFrameForX(x0 - overlap); | 306 sv_frame_t frame0 = v->getFrameForX(x0 - overlap); |
305 sv_frame_t frame1 = v->getFrameForX(x1 + overlap); | 307 sv_frame_t frame1 = v->getFrameForX(x1 + overlap); |
306 | 308 |
307 EventVector points(model->getEventsWithin(frame0, frame1 - frame0, 2)); | 309 EventVector points(model->getEventsWithin(frame0, frame1 - frame0, 2)); |