From abbb174df87db22e7836bf2e28284ddf08a8906b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 3 Jul 2013 19:07:19 +0200 Subject: [PATCH] meterbridge -9dBFS tick -> red --- gtk2_ardour/meter_strip.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/meter_strip.cc b/gtk2_ardour/meter_strip.cc index fc31a3f96b..89ed54268b 100644 --- a/gtk2_ardour/meter_strip.cc +++ b/gtk2_ardour/meter_strip.cc @@ -595,10 +595,10 @@ MeterStrip::render_ticks (Gtk::Widget& w, vector types) for (vector::const_iterator i = types.begin(); i != types.end(); ++i) { Gdk::Color c; + c = w.get_style()->get_fg (Gtk::STATE_NORMAL); if (types.size() > 1) { /* we're overlaying more than 1 set of marks, so use different colours */ - Gdk::Color c; switch (*i) { case DataType::AUDIO: c = w.get_style()->get_fg (Gtk::STATE_NORMAL); @@ -677,11 +677,13 @@ MeterStrip::render_ticks (Gtk::Widget& w, vector types) switch (*i) { case DataType::AUDIO: - if (j->first >= 0) { + if (j->first >= 0 || j->first == -9) { cairo_set_source_rgb (cr, UINT_RGBA_R_FLT(peakcolor), UINT_RGBA_G_FLT(peakcolor), UINT_RGBA_B_FLT(peakcolor)); + } else { + cairo_set_source_rgb (cr, c.get_red_p(), c.get_green_p(), c.get_blue_p()); } fraction = log_meter (j->first); pos = height - (gint) floor (height * fraction);