Timeline: Avoid more complete redraws.

This commit is contained in:
Jonathan Moore Liles 2012-06-06 23:49:18 -07:00
parent 183764e767
commit 65f33096c2
4 changed files with 7 additions and 5 deletions

View File

@ -109,7 +109,7 @@ public:
if ( m == FL_RELEASE )
{
sequence()->sort();
timeline->redraw();
redraw();
}
return r;

View File

@ -60,7 +60,7 @@ Control_Point::set ( Log_Entry &e )
if ( ! strcmp( s, ":y" ) )
_y = atof( v );
timeline->redraw();
redraw();
// _make_label();
}

View File

@ -466,8 +466,7 @@ Sequence_Widget::handle ( int m )
// timeline->update_length( start() + length() );
/* FIXME: why isn't this enough? */
// sequence()->redraw();
timeline->redraw();
sequence()->redraw();
}
if ( ! selected() || _selection.size() == 1 )

View File

@ -267,13 +267,16 @@ public:
virtual void
redraw ( void )
{
if ( ! _sequence )
return;
if ( ! (align() & FL_ALIGN_INSIDE) )
{
// FIXME: to better..
_sequence->redraw();
}
else
_sequence->damage( FL_DAMAGE_EXPOSE, x(), y(), w(), h() );
_sequence->damage( FL_DAMAGE_ALL, x(), y(), w(), h() );
}
virtual void draw_box ( void );