comparison layer/RegionLayer.cpp @ 1550:e95cefd4aa81

Further replacements of QRect::right() with the right (arf) calculation
author Chris Cannam
date Thu, 31 Oct 2019 15:32:13 +0000
parents e6362cf5ff1d
children
comparison
equal deleted inserted replaced
1549:9a5eede01869 1550:e95cefd4aa81
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,