Browse Source

Timeline: Avoid more complete redraws.

tags/non-daw-v1.2.0
Jonathan Moore Liles 13 years ago
parent
commit
65f33096c2
4 changed files with 7 additions and 5 deletions
  1. +1
    -1
      timeline/src/Annotation_Point.H
  2. +1
    -1
      timeline/src/Control_Point.C
  3. +1
    -2
      timeline/src/Sequence_Widget.C
  4. +4
    -1
      timeline/src/Sequence_Widget.H

+ 1
- 1
timeline/src/Annotation_Point.H View File

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

return r;


+ 1
- 1
timeline/src/Control_Point.C View File

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

timeline->redraw();
redraw();

// _make_label();
}


+ 1
- 2
timeline/src/Sequence_Widget.C 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 )


+ 4
- 1
timeline/src/Sequence_Widget.H 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 );


Loading…
Cancel
Save