projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a44c8b9
)
Minimise duplicate calls to CairoWidget::set_dirty() in the editor summary.
author
nick_m
<mainsbridge@gmail.com>
Sat, 9 Jul 2016 15:50:38 +0000
(
01:50
+1000)
committer
nick_m
<mainsbridge@gmail.com>
Sat, 9 Jul 2016 16:18:38 +0000
(
02:18
+1000)
- many regions may be changed by one operation.
gtk2_ardour/editor_summary.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_summary.cc
b/gtk2_ardour/editor_summary.cc
index 0ac2cdc114ae0653ecf30f97d67e39359fef3170..a2882a201a25a1fbc9aea895fc0b52b39abd7f02 100644
(file)
--- 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 */