1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-30 15:39:27 +02:00

Better initial size for AUs that are smaller than minimum dialog size.

This commit is contained in:
lllucius@gmail.com 2014-12-16 05:40:04 +00:00
parent 3bd511698a
commit fbae2c5b28

View File

@ -1849,7 +1849,7 @@ bool AudioUnitEffect::PopulateUI(wxWindow *parent)
// 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
// 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
// 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->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);
mParent->PushEventHandler(mEventHelper);