From 7f1055e84526fcd0cf3c2807b83316335bbb1ab0 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Fri, 25 Apr 2008 03:14:13 -0500 Subject: [PATCH] Don't redraw capture regions so often. --- Timeline/Region.C | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Timeline/Region.C b/Timeline/Region.C index 2bc835e..fa2e711 100644 --- a/Timeline/Region.C +++ b/Timeline/Region.C @@ -955,7 +955,9 @@ Region::write ( sample_t *buf, nframes_t nframes ) /* FIXME: too much? */ // _track->damage( FL_DAMAGE_EXPOSE, x() + w(), y(), 10/* FIXME: guess */, h() ); - redraw(); + + if ( 0 == ( timeline->ts_to_x( _range.end ) % 20 ) ) + redraw(); return l; }