Minor cleanup.

This commit is contained in:
Jonathan Moore Liles 2008-05-03 18:44:28 -05:00
parent 951c1ca23b
commit aef0d1c6b1
1 changed files with 7 additions and 4 deletions

View File

@ -301,7 +301,7 @@ Timeline::nearest_line ( nframes_t when, nframes_t *frame ) const
/* FIXME: handle snap to bar */ /* FIXME: handle snap to bar */
draw_measure( when - x_to_ts( 10 ), 0, 20, 0, (Fl_Color)0, nearest_line_cb, frame, false ); draw_measure( when - x_to_ts( 10 ), 0, 20, 0, (Fl_Color)0, nearest_line_cb, frame, false );
return *frame != -1; return *frame != (nframes_t)-1;
} }
nframes_t nframes_t
@ -514,7 +514,7 @@ Timeline::draw ( void )
if ( ( damage() & FL_DAMAGE_ALL ) || ( damage() & FL_DAMAGE_EXPOSE ) ) if ( ( damage() & FL_DAMAGE_ALL ) || ( damage() & FL_DAMAGE_EXPOSE ) )
{ {
printf( "complete redraw\n" ); DMESSAGE( "complete redraw" );
draw_box( box(), 0, 0, w(), h(), color() ); draw_box( box(), 0, 0, w(), h(), color() );
@ -794,6 +794,8 @@ Timeline::track_under ( int Y )
if ( ! ( t->y() > Y || t->y() + t->h() < Y ) ) if ( ! ( t->y() > Y || t->y() + t->h() < Y ) )
return t; return t;
} }
return NULL;
} }
@ -1033,7 +1035,8 @@ Timeline::get_unique_track_name ( const char *name )
void void
Timeline::add_track ( Track *track ) Timeline::add_track ( Track *track )
{ {
printf( "added new track to the timeline\n" ); DMESSAGE( "added new track to the timeline" );
/* FIXME: do locking */ /* FIXME: do locking */
tracks->add( track ); tracks->add( track );
@ -1045,7 +1048,7 @@ Timeline::add_track ( Track *track )
void void
Timeline::remove_track ( Track *track ) Timeline::remove_track ( Track *track )
{ {
printf( "removed track from the timeline\n" ); DMESSAGE( "removed track from the timeline" );
/* FIXME: do locking */ /* FIXME: do locking */