mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-31 16:09:28 +02:00
Better initial size for AUs that are smaller than minimum dialog size.
This commit is contained in:
parent
3bd511698a
commit
fbae2c5b28
@ -1849,7 +1849,7 @@ bool AudioUnitEffect::PopulateUI(wxWindow *parent)
|
|||||||
|
|
||||||
// This is a temporary hack to allow usage of effects from Waves.
|
// This is a temporary hack to allow usage of effects from Waves.
|
||||||
// I don't know why, but they simply do not display. Could be that
|
// I don't know why, but they simply do not display. Could be that
|
||||||
// they are "prefer" 64-bit and/or Cocoa apps. I don't want to spend
|
// they "prefer" 64-bit and/or Cocoa apps. I don't want to spend
|
||||||
// too much time trying to get them to work though since I suspect
|
// too much time trying to get them to work though since I suspect
|
||||||
// we'll have better luck once we upgrade to wx3 and become Cocoa-based.
|
// we'll have better luck once we upgrade to wx3 and become Cocoa-based.
|
||||||
//
|
//
|
||||||
@ -1926,6 +1926,13 @@ bool AudioUnitEffect::PopulateUI(wxWindow *parent)
|
|||||||
mDialog->Fit();
|
mDialog->Fit();
|
||||||
mDialog->SetMinSize(mDialog->GetSize());
|
mDialog->SetMinSize(mDialog->GetSize());
|
||||||
|
|
||||||
|
wxSize ps = mParent->GetSize();
|
||||||
|
if ((int) rect.size.width < ps.GetWidth())
|
||||||
|
{
|
||||||
|
rect.size.width = ps.GetWidth();
|
||||||
|
HIViewSetFrame(auView, &rect);
|
||||||
|
}
|
||||||
|
|
||||||
mEventHelper = new AudioUnitEffectEventHelper(this);
|
mEventHelper = new AudioUnitEffectEventHelper(this);
|
||||||
mParent->PushEventHandler(mEventHelper);
|
mParent->PushEventHandler(mEventHelper);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user