Reduce the number of peaks read when drawing region.
This commit is contained in:
parent
5e0e95cc0a
commit
318c27088b
2
Region.C
2
Region.C
|
@ -331,7 +331,7 @@ Region::draw ( int X, int Y, int W, int H )
|
|||
|
||||
// fl_push_clip( x() + Fl::box_dx( box() ), y(), w() - Fl::box_dw( box() ), h() );
|
||||
|
||||
draw_waveform( rx, Y, rw, H, _clip, _start + offset, _end - offset, _scale, _color );
|
||||
draw_waveform( rx, Y, rw, H, _clip, _start + offset, min( (_end - _start) - offset, _end), _scale, _color );
|
||||
|
||||
fl_color( FL_BLACK );
|
||||
fl_line( rx, Y, rx, Y + H );
|
||||
|
|
Loading…
Reference in New Issue