forked from mia/Aegisub
Blind attempt to get audio box to work on Linux.
Originally committed to SVN as r990.
This commit is contained in:
parent
9339f1c45b
commit
a0f3e58894
1 changed files with 7 additions and 1 deletions
|
@ -360,8 +360,14 @@ void AudioBox::OnSash(wxSashEvent& event) {
|
||||||
if (oldh == h) return;
|
if (oldh == h) return;
|
||||||
|
|
||||||
// Resize
|
// Resize
|
||||||
audioDisplay->SetSize(w,h);
|
|
||||||
audioDisplay->SetSizeHints(w,h,w,h);
|
audioDisplay->SetSizeHints(w,h,w,h);
|
||||||
|
audioDisplay->SetSize(w,h);
|
||||||
|
int _w,_h;
|
||||||
|
audioDisplay->GetSize(&_w,&_h);
|
||||||
|
audioDisplay->SetSizeHints(_w,_h,_w,_h);
|
||||||
|
//sashSizer->Fit(Sash);
|
||||||
|
sashSizer->Layout();
|
||||||
|
Sash->GetParent()->Layout();
|
||||||
|
|
||||||
// Store new size
|
// Store new size
|
||||||
Options.SetInt(_T("Audio Display Height"),h);
|
Options.SetInt(_T("Audio Display Height"),h);
|
||||||
|
|
Loading…
Add table
Reference in a new issue