Don't redraw playhead more than necessary.

pull/3/head
Jonathan Moore Liles 2008-04-12 19:02:58 -05:00
parent ab20e03eb2
commit ebc3f8db92
1 changed files with 7 additions and 1 deletions

View File

@ -475,7 +475,13 @@ Timeline::draw_playhead ( void )
void
Timeline::redraw_playhead ( void )
{
redraw_overlay();
static nframes_t last_playhead = -1;
if ( last_playhead != transport.frame )
{
redraw_overlay();
last_playhead = transport.frame;
}
}