mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Save and restore plug-in DPI awareness in AudioPluginHost
This commit is contained in:
parent
1baa825f2c
commit
7041be0520
2 changed files with 14 additions and 5 deletions
|
|
@ -442,12 +442,14 @@ struct GraphEditorPanel::PluginComponent : public Component,
|
|||
case 10: showWindow (PluginWindow::Type::normal); break;
|
||||
case 11: showWindow (PluginWindow::Type::programs); break;
|
||||
case 12: showWindow (PluginWindow::Type::generic) ; break;
|
||||
#if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE
|
||||
case 13:
|
||||
{
|
||||
if (auto* node = graph.graph.getNodeForId (pluginID))
|
||||
node->properties.set ("DPIAware", ! node->properties ["DPIAware"]);
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
case 14: showWindow (PluginWindow::Type::debug); break;
|
||||
case 20: showWindow (PluginWindow::Type::audioIO); break;
|
||||
case 21: testStateSaveLoad(); break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue