Browse Source

Don't redraw playhead more than necessary.

tags/non-daw-v1.1.0
Jonathan Moore Liles 17 years ago
parent
commit
ebc3f8db92
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      Timeline/Timeline.C

+ 7
- 1
Timeline/Timeline.C 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;
}
}




Loading…
Cancel
Save