mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AU: Disable CoreAnimation resizing transitions for AU plug-in windows
This commit is contained in:
parent
5900e076f9
commit
05624e8354
1 changed files with 14 additions and 1 deletions
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
==============================================================================
|
||||
*/
|
||||
|
||||
#include "../../juce_core/system/juce_TargetPlatform.h"
|
||||
#include "../utility/juce_CheckSettingMacros.h"
|
||||
|
||||
|
|
@ -51,6 +50,7 @@
|
|||
#include <AudioUnit/AudioUnit.h>
|
||||
#include <AudioToolbox/AudioUnitUtilities.h>
|
||||
#include <CoreMIDI/MIDIServices.h>
|
||||
#include <QuartzCore/QuartzCore.h>
|
||||
#include "CoreAudioUtilityClasses/MusicDeviceBase.h"
|
||||
|
||||
/** The BUILD_AU_CARBON_UI flag lets you specify whether old-school carbon hosts are supported as
|
||||
|
|
@ -1320,8 +1320,15 @@ public:
|
|||
r.origin.y = r.origin.y + r.size.height - component.getHeight();
|
||||
r.size.width = component.getWidth();
|
||||
r.size.height = component.getHeight();
|
||||
|
||||
[CATransaction begin];
|
||||
[CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];
|
||||
|
||||
[[view superview] setFrame: r];
|
||||
[view setFrame: makeNSRect (component.getLocalBounds())];
|
||||
|
||||
[CATransaction commit];
|
||||
|
||||
[view setNeedsDisplay: YES];
|
||||
}
|
||||
|
||||
|
|
@ -1389,8 +1396,14 @@ public:
|
|||
NSRect r = [[view superview] frame];
|
||||
r.size.width = editor->getWidth();
|
||||
r.size.height = editor->getHeight();
|
||||
|
||||
[CATransaction begin];
|
||||
[CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];
|
||||
|
||||
[[view superview] setFrame: r];
|
||||
[view setFrame: makeNSRect (editor->getLocalBounds())];
|
||||
[CATransaction commit];
|
||||
|
||||
[view setNeedsDisplay: YES];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue