From 97f0283780bf502d6fe42be28cb92335330d1eae Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Mon, 19 May 2008 00:07:42 -0500 Subject: [PATCH] Add locking to redraws triggered while recording. --- Timeline/Audio_Region.C | 3 +++ Timeline/TLE.fl | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Timeline/Audio_Region.C b/Timeline/Audio_Region.C index 4204802..5aaf472 100644 --- a/Timeline/Audio_Region.C +++ b/Timeline/Audio_Region.C @@ -846,7 +846,10 @@ Audio_Region::write ( nframes_t nframes ) if ( W ) { ++W; + Fl::lock(); sequence()->damage( FL_DAMAGE_ALL, x() + w() - W, y(), W, h() ); + Fl::awake(); + Fl::unlock(); } } diff --git a/Timeline/TLE.fl b/Timeline/TLE.fl index db01704..4ee4bac 100644 --- a/Timeline/TLE.fl +++ b/Timeline/TLE.fl @@ -92,7 +92,10 @@ Track::capture_format = o->menu()[ o->value() ].label();} {} main_window->show(); -Fl::run();} {} +Fl::lock(); + +Fl::run();} {selected + } } Function {TLE()} {open } { @@ -675,7 +678,7 @@ xruns_output->value( engine->xruns() );} {} xywh {-4 122 513 427} } { Fl_Group {} { - label Credits open selected + label Credits open xywh {-4 147 507 394} } { Fl_Box {} {