Timeline: Avoid more complete redraws.
This commit is contained in:
parent
183764e767
commit
65f33096c2
|
@ -109,7 +109,7 @@ public:
|
|||
if ( m == FL_RELEASE )
|
||||
{
|
||||
sequence()->sort();
|
||||
timeline->redraw();
|
||||
redraw();
|
||||
}
|
||||
|
||||
return r;
|
||||
|
|
|
@ -60,7 +60,7 @@ Control_Point::set ( Log_Entry &e )
|
|||
if ( ! strcmp( s, ":y" ) )
|
||||
_y = atof( v );
|
||||
|
||||
timeline->redraw();
|
||||
redraw();
|
||||
|
||||
// _make_label();
|
||||
}
|
||||
|
|
|
@ -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 )
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue