Don't redraw playhead more than necessary.
This commit is contained in:
parent
ab20e03eb2
commit
ebc3f8db92
|
@ -475,7 +475,13 @@ Timeline::draw_playhead ( void )
|
||||||
void
|
void
|
||||||
Timeline::redraw_playhead ( void )
|
Timeline::redraw_playhead ( void )
|
||||||
{
|
{
|
||||||
|
static nframes_t last_playhead = -1;
|
||||||
|
|
||||||
|
if ( last_playhead != transport.frame )
|
||||||
|
{
|
||||||
redraw_overlay();
|
redraw_overlay();
|
||||||
|
last_playhead = transport.frame;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue