Mercurial > hg > svgui
comparison layer/RegionLayer.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 |
---|---|
847 sv_samplerate_t sampleRate = model->getSampleRate(); | 847 sv_samplerate_t sampleRate = model->getSampleRate(); |
848 if (!sampleRate) return; | 848 if (!sampleRate) return; |
849 | 849 |
850 // Profiler profiler("RegionLayer::paint", true); | 850 // Profiler profiler("RegionLayer::paint", true); |
851 | 851 |
852 int x0 = rect.left() - 40, x1 = rect.right(); | 852 int x0 = rect.left() - 40; |
853 int x1 = x0 + rect.width() + 80; | |
853 | 854 |
854 sv_frame_t wholeFrame0 = v->getFrameForX(0); | 855 sv_frame_t wholeFrame0 = v->getFrameForX(0); |
855 sv_frame_t wholeFrame1 = v->getFrameForX(v->getPaintWidth()); | 856 sv_frame_t wholeFrame1 = v->getFrameForX(v->getPaintWidth()); |
856 | 857 |
857 EventVector points(model->getEventsSpanning(wholeFrame0, | 858 EventVector points(model->getEventsSpanning(wholeFrame0, |