mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
merge with 2.0-ongoing @ rev 3147
git-svn-id: svn://localhost/ardour2/branches/3.0@3152 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
19a4b99032
commit
997e4b1f9c
141 changed files with 3391 additions and 26001 deletions
|
|
@ -217,8 +217,10 @@ GainMeter::GainMeter (boost::shared_ptr<IO> io, Session& s)
|
|||
ResetGroupPeakDisplays.connect (mem_fun(*this, &GainMeter::reset_group_peak_display));
|
||||
|
||||
UI::instance()->theme_changed.connect (mem_fun(*this, &GainMeter::on_theme_changed));
|
||||
|
||||
ColorsChanged.connect (mem_fun (*this, &GainMeter::color_handler));
|
||||
|
||||
ColorsChanged.connect (bind (mem_fun (*this, &GainMeter::color_handler), false));
|
||||
DPIReset.connect (bind (mem_fun (*this, &GainMeter::color_handler), true));
|
||||
|
||||
//hide_all();
|
||||
}
|
||||
|
||||
|
|
@ -302,7 +304,7 @@ GainMeter::meter_metrics_expose (GdkEventExpose *ev)
|
|||
Glib::RefPtr<Gdk::Pixmap> pixmap;
|
||||
std::map<string,Glib::RefPtr<Gdk::Pixmap> >::iterator i = metric_pixmaps.find (meter_metric_area.get_name());
|
||||
|
||||
if (i == metric_pixmaps.end() || style_changed) {
|
||||
if (i == metric_pixmaps.end() || style_changed || dpi_changed) {
|
||||
pixmap = render_metrics (meter_metric_area);
|
||||
} else {
|
||||
pixmap = i->second;
|
||||
|
|
@ -978,8 +980,9 @@ void GainMeter::clear_meters ()
|
|||
}
|
||||
}
|
||||
|
||||
void GainMeter::color_handler()
|
||||
void GainMeter::color_handler (bool dpi)
|
||||
{
|
||||
color_changed = true;
|
||||
dpi_changed = (dpi) ? true : false;
|
||||
setup_meters();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue