mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Minimise duplicate calls to CairoWidget::set_dirty() in the editor summary.
- many regions may be changed by one operation.
This commit is contained in:
parent
a44c8b96ae
commit
23da9acf7e
1 changed files with 4 additions and 2 deletions
|
|
@ -293,8 +293,10 @@ EditorSummary::render_region (RegionView* r, cairo_t* cr, double y) const
|
||||||
void
|
void
|
||||||
EditorSummary::set_background_dirty ()
|
EditorSummary::set_background_dirty ()
|
||||||
{
|
{
|
||||||
|
if (!_background_dirty) {
|
||||||
_background_dirty = true;
|
_background_dirty = true;
|
||||||
set_dirty ();
|
set_dirty ();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Set the summary so that just the overlays (viewbox, playhead etc.) will be re-rendered */
|
/** Set the summary so that just the overlays (viewbox, playhead etc.) will be re-rendered */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue