Update recorder UI directly when DPI/scaling changes
This commit is contained in:
@@ -297,6 +297,7 @@ RecorderUI::RecorderUI ()
|
||||
PresentationInfo::Change.connect (*this, invalidator (*this), std::bind (&RecorderUI::presentation_info_changed, this, _1), gui_context());
|
||||
Config->ParameterChanged.connect (*this, invalidator (*this), std::bind (&RecorderUI::parameter_changed, this, _1), gui_context ());
|
||||
UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &RecorderUI::parameter_changed));
|
||||
UIConfiguration::instance().DPIReset.connect (sigc::mem_fun (*this, &RecorderUI::dpi_reset));
|
||||
//ARDOUR_UI::instance()->Escape.connect (*this, invalidator (*this), std::bind (&RecorderUI::escape, this), gui_context());
|
||||
|
||||
/* init */
|
||||
@@ -509,6 +510,12 @@ RecorderUI::update_monitorstate (std::string pn, bool en)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
RecorderUI::dpi_reset ()
|
||||
{
|
||||
start_updating ();
|
||||
}
|
||||
|
||||
void
|
||||
RecorderUI::parameter_changed (string const& p)
|
||||
{
|
||||
|
||||
@@ -81,6 +81,7 @@ private:
|
||||
void update_title ();
|
||||
void session_going_away ();
|
||||
void parameter_changed (std::string const&);
|
||||
void dpi_reset ();
|
||||
void presentation_info_changed (PBD::PropertyChange const&);
|
||||
void gui_extents_changed ();
|
||||
void regions_changed (std::shared_ptr<ARDOUR::RegionList>, PBD::PropertyChange const&);
|
||||
|
||||
Reference in New Issue
Block a user