From ebc3f8db92ac68d3fde343dfd86304431267f57a Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Sat, 12 Apr 2008 19:02:58 -0500 Subject: [PATCH] Don't redraw playhead more than necessary. --- Timeline/Timeline.C | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Timeline/Timeline.C b/Timeline/Timeline.C index 8ea0876..32a57b1 100644 --- a/Timeline/Timeline.C +++ b/Timeline/Timeline.C @@ -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; + } }