Update recorder UI directly when DPI/scaling changes

This commit is contained in:
Robin Gareus
2025-08-12 05:30:24 +02:00
parent 3aba12c90c
commit 2f234148b7
2 changed files with 8 additions and 0 deletions

View File

@@ -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)
{

View File

@@ -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&);