1
0
Fork 0
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:
ed 2019-08-29 14:37:02 +01:00
parent 1baa825f2c
commit 7041be0520
2 changed files with 14 additions and 5 deletions

View file

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