Timeline: Avoid more complete redraws.
This commit is contained in:
parent
183764e767
commit
65f33096c2
|
@ -109,7 +109,7 @@ public:
|
||||||
if ( m == FL_RELEASE )
|
if ( m == FL_RELEASE )
|
||||||
{
|
{
|
||||||
sequence()->sort();
|
sequence()->sort();
|
||||||
timeline->redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|
|
@ -60,7 +60,7 @@ Control_Point::set ( Log_Entry &e )
|
||||||
if ( ! strcmp( s, ":y" ) )
|
if ( ! strcmp( s, ":y" ) )
|
||||||
_y = atof( v );
|
_y = atof( v );
|
||||||
|
|
||||||
timeline->redraw();
|
redraw();
|
||||||
|
|
||||||
// _make_label();
|
// _make_label();
|
||||||
}
|
}
|
||||||
|
|
|
@ -466,8 +466,7 @@ Sequence_Widget::handle ( int m )
|
||||||
// timeline->update_length( start() + length() );
|
// timeline->update_length( start() + length() );
|
||||||
|
|
||||||
/* FIXME: why isn't this enough? */
|
/* FIXME: why isn't this enough? */
|
||||||
// sequence()->redraw();
|
sequence()->redraw();
|
||||||
timeline->redraw();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! selected() || _selection.size() == 1 )
|
if ( ! selected() || _selection.size() == 1 )
|
||||||
|
|
|
@ -267,13 +267,16 @@ public:
|
||||||
virtual void
|
virtual void
|
||||||
redraw ( void )
|
redraw ( void )
|
||||||
{
|
{
|
||||||
|
if ( ! _sequence )
|
||||||
|
return;
|
||||||
|
|
||||||
if ( ! (align() & FL_ALIGN_INSIDE) )
|
if ( ! (align() & FL_ALIGN_INSIDE) )
|
||||||
{
|
{
|
||||||
// FIXME: to better..
|
// FIXME: to better..
|
||||||
_sequence->redraw();
|
_sequence->redraw();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_sequence->damage( FL_DAMAGE_EXPOSE, x(), y(), w(), h() );
|
_sequence->damage( FL_DAMAGE_ALL, x(), y(), w(), h() );
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void draw_box ( void );
|
virtual void draw_box ( void );
|
||||||
|
|
Loading…
Reference in New Issue