diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-22 22:04:27 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-22 22:04:27 +0000 |
commit | 6ee0af19c595637c4e5023f134aba3497cd7e343 (patch) | |
tree | 10388d113c249f8055fe74d3fde3dac6f68c8125 /gtk2_ardour/gain_meter.h | |
parent | 862972eaaa2232c399bb819eb1092379689d747e (diff) |
two birds with one stone: fix "color bug" that occured as soon any route with >1 types of data was created, because a global Gtk::Style was modified to draw text, but fix it by switching drawing of the meter metrics area to cairo, and avoid all that stuff
git-svn-id: svn://localhost/ardour2/branches/3.0@9914 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/gain_meter.h')
-rw-r--r-- | gtk2_ardour/gain_meter.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/gain_meter.h b/gtk2_ardour/gain_meter.h index e50bf9b465..0112c44d92 100644 --- a/gtk2_ardour/gain_meter.h +++ b/gtk2_ardour/gain_meter.h @@ -201,8 +201,9 @@ class GainMeter : public GainMeterBase, public Gtk::VBox gint meter_metrics_expose (GdkEventExpose *); - static std::map<std::string,Glib::RefPtr<Gdk::Pixmap> > metric_pixmaps; - static Glib::RefPtr<Gdk::Pixmap> render_metrics (Gtk::Widget &, std::vector<ARDOUR::DataType>); + typedef std::map<std::string,cairo_pattern_t*> MetricPatterns; + static MetricPatterns metric_patterns; + static cairo_pattern_t* render_metrics (Gtk::Widget &, std::vector<ARDOUR::DataType>); private: |