From a0f3e58894791e08a1f0ea8bde3e3f58e42b3c41 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Tue, 3 Apr 2007 23:29:51 +0000 Subject: [PATCH] Blind attempt to get audio box to work on Linux. Originally committed to SVN as r990. --- aegisub/audio_box.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aegisub/audio_box.cpp b/aegisub/audio_box.cpp index 791d71c3d..ac736ca06 100644 --- a/aegisub/audio_box.cpp +++ b/aegisub/audio_box.cpp @@ -360,8 +360,14 @@ void AudioBox::OnSash(wxSashEvent& event) { if (oldh == h) return; // Resize - audioDisplay->SetSize(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 Options.SetInt(_T("Audio Display Height"),h);