Draw waveforms within box boarders.

This commit is contained in:
Jonathan Moore Liles 2008-02-26 03:18:16 -06:00
parent a81a46510d
commit 3d57bf5c52
2 changed files with 3 additions and 3 deletions

View File

@ -407,12 +407,12 @@ 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() );
int ch = h() / _clip->channels();
int ch = (h() - Fl::box_dh( box() )) / _clip->channels();
for ( int i = _clip->channels(); i--; )
// draw_waveform( rx, y() + (i * ch), rw, ch, _clip, i,
// _start + offset, min( (_end - _start) - offset, _end),
// _scale, _selected ? _color : fl_invert_color( _color ) );
draw_waveform( rx, X, y() + (i * ch), W, ch, _clip, i,
draw_waveform( rx, X, (y() + Fl::box_dy( box() )) + (i * ch), W, ch, _clip, i,
_start + offset, min( (_end - _start) - offset, _end),
_scale, _selected ? _color : fl_invert_color( _color ) );

View File

@ -126,7 +126,7 @@ struct Timeline : public Fl_Group
{
Timeline *tl = (Timeline *)v;
printf( "draw_clip: %d,%d %dx%d\n", X, Y, W, H );
// printf( "draw_clip: %d,%d %dx%d\n", X, Y, W, H );
fl_push_clip( X, Y, W, H );
fl_color( rand() );