mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-07 04:10:08 +00:00
VST/VST3: Removed a workaround for checking whether DPI-aware windows were incorrectly scaled in editor resized() callback
This commit is contained in:
parent
ec0345c093
commit
a7c5337568
2 changed files with 0 additions and 10 deletions
|
|
@ -1117,11 +1117,6 @@ public:
|
|||
{
|
||||
auto newBounds = getLocalBounds();
|
||||
|
||||
#if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE
|
||||
if (! lastBounds.isEmpty() && isWithin (newBounds.toDouble().getAspectRatio(), lastBounds.toDouble().getAspectRatio(), 0.001))
|
||||
return;
|
||||
#endif
|
||||
|
||||
{
|
||||
const ScopedValueSetter<bool> resizingChildSetter (resizingChild, true);
|
||||
pluginEditor->setBounds (pluginEditor->getLocalArea (this, newBounds).withPosition (0, 0));
|
||||
|
|
|
|||
|
|
@ -1580,11 +1580,6 @@ private:
|
|||
{
|
||||
auto newBounds = getLocalBounds();
|
||||
|
||||
#if JUCE_WINDOWS && JUCE_WIN_PER_MONITOR_DPI_AWARE
|
||||
if (! lastBounds.isEmpty() && isWithin (newBounds.toDouble().getAspectRatio(), lastBounds.toDouble().getAspectRatio(), 0.001))
|
||||
return;
|
||||
#endif
|
||||
|
||||
{
|
||||
const ScopedValueSetter<bool> resizingChildSetter (resizingChild, true);
|
||||
pluginEditor->setBounds (pluginEditor->getLocalArea (this, newBounds).withPosition (0, 0));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue