From 23da9acf7ea39d34b9393e38c06a6d80202f80f8 Mon Sep 17 00:00:00 2001 From: nick_m Date: Sun, 10 Jul 2016 01:50:38 +1000 Subject: [PATCH] Minimise duplicate calls to CairoWidget::set_dirty() in the editor summary. - many regions may be changed by one operation. --- gtk2_ardour/editor_summary.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc index 0ac2cdc114..a2882a201a 100644 --- a/gtk2_ardour/editor_summary.cc +++ b/gtk2_ardour/editor_summary.cc @@ -293,8 +293,10 @@ EditorSummary::render_region (RegionView* r, cairo_t* cr, double y) const void EditorSummary::set_background_dirty () { - _background_dirty = true; - set_dirty (); + if (!_background_dirty) { + _background_dirty = true; + set_dirty (); + } } /** Set the summary so that just the overlays (viewbox, playhead etc.) will be re-rendered */