Mercurial > hg > svgui
comparison layer/WaveformLayer.cpp @ 1375:694004228ab7 zoom
Fix incorrect start/end overlay drawing when zoomed far in
author | Chris Cannam |
---|---|
date | Tue, 06 Nov 2018 10:51:46 +0000 |
parents | cca66ce390e0 |
children | a0bfe366f9cb |
comparison
equal
deleted
inserted
replaced
1374:631897ba9fca | 1375:694004228ab7 |
---|---|
824 showIndividualSample = (x == xf0); | 824 showIndividualSample = (x == xf0); |
825 i0 = i1 = (f0 - frame0) * oversampleBy + (x - xf0); | 825 i0 = i1 = (f0 - frame0) * oversampleBy + (x - xf0); |
826 } | 826 } |
827 | 827 |
828 if (f0 < frame0) { | 828 if (f0 < frame0) { |
829 SVCERR << "ERROR: WaveformLayer::paint: pixel " << x << " has f0 = " << f0 << " which is less than range frame0 " << frame0 << " for x0 = " << x0 << endl; | 829 // Not an error, this simply occurs when painting the |
830 // start of a signal in PixelsPerFrame zone | |
830 continue; | 831 continue; |
831 } | 832 } |
832 | 833 |
833 #ifdef DEBUG_WAVEFORM_PAINT_BY_PIXEL | 834 #ifdef DEBUG_WAVEFORM_PAINT_BY_PIXEL |
834 SVCERR << "WaveformLayer::paint: pixel " << x << ": i0 " << i0 << " (f " << f0 << "), i1 " << i1 << " (f " << f1 << ")" << endl; | 835 SVCERR << "WaveformLayer::paint: pixel " << x << ": i0 " << i0 << " (f " << f0 << "), i1 " << i1 << " (f " << f1 << ")" << endl; |