mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
VST3: Implement GUI scale factor extension
This commit is contained in:
parent
65c433dce2
commit
e3ca1f0605
1 changed files with 8 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
#include "gtkmm2ext/gui_thread.h"
|
#include "gtkmm2ext/gui_thread.h"
|
||||||
|
|
||||||
#include "timers.h"
|
#include "timers.h"
|
||||||
|
#include "ui_config.h"
|
||||||
#include "vst3_plugin_ui.h"
|
#include "vst3_plugin_ui.h"
|
||||||
|
|
||||||
using namespace ARDOUR;
|
using namespace ARDOUR;
|
||||||
|
|
@ -94,6 +95,13 @@ VST3PluginUI::package (Gtk::Window& win)
|
||||||
{
|
{
|
||||||
win.signal_map_event().connect (sigc::mem_fun(*this, &VST3PluginUI::start_updating));
|
win.signal_map_event().connect (sigc::mem_fun(*this, &VST3PluginUI::start_updating));
|
||||||
win.signal_unmap_event().connect (sigc::mem_fun(*this, &VST3PluginUI::stop_updating));
|
win.signal_unmap_event().connect (sigc::mem_fun(*this, &VST3PluginUI::stop_updating));
|
||||||
|
|
||||||
|
IPlugView* view = _vst3->view ();
|
||||||
|
FUnknownPtr<Presonus::IPlugInViewScaling> vs (view);
|
||||||
|
if (vs) {
|
||||||
|
vs->setContentScaleFactor (UIConfiguration::instance().get_ui_scale ());
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue