summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_summary.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-06-14 13:31:00 +0000
committerCarl Hetherington <carl@carlh.net>2009-06-14 13:31:00 +0000
commit3f261ac90cde31ef09fbb5cfa46ea4c579812d08 (patch)
treefd33b4449218c35ea592007e560c6fbe5f3b3576 /gtk2_ardour/editor_summary.cc
parenteed07f451601c08b0197fdd5595f3a838b7808bb (diff)
Use track colours for the summary view.
git-svn-id: svn://localhost/ardour2/branches/3.0@5184 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_summary.cc')
-rw-r--r--gtk2_ardour/editor_summary.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/editor_summary.cc b/gtk2_ardour/editor_summary.cc
index 43c3cd3571..089212378b 100644
--- a/gtk2_ardour/editor_summary.cc
+++ b/gtk2_ardour/editor_summary.cc
@@ -162,7 +162,6 @@ EditorSummary::render (cairo_t* cr)
/* render regions */
- int n = 0;
double y = 0;
for (PublicEditor::TrackViewList::const_iterator i = _editor->track_views.begin(); i != _editor->track_views.end(); ++i) {
StreamView* s = (*i)->view ();
@@ -170,9 +169,9 @@ EditorSummary::render (cairo_t* cr)
if (s) {
double const h = (*i)->effective_height () * _vertical_scale;
cairo_set_line_width (cr, h);
-
- double const v = ((n % 2) == 0) ? 1 : 0.5;
- cairo_set_source_rgb (cr, v, v, v);
+
+ Gdk::Color const c = (*i)->color ();
+ cairo_set_source_rgb (cr, c.get_red_p (), c.get_green_p(), c.get_blue_p());
s->foreach_regionview (bind (
mem_fun (*this, &EditorSummary::render_region),
@@ -180,7 +179,6 @@ EditorSummary::render (cairo_t* cr)
start,
y + h / 2
));
- ++n;
y += h;
}
}