Fixed a bug related to resizing the audio display, that caused the video display to stretch, ruining its aspect ratio.

Originally committed to SVN as r2438.
This commit is contained in:
Rodrigo Braz Monteiro 2008-11-09 23:08:44 +00:00
parent 3496022b15
commit 5ead3d4230
2 changed files with 4 additions and 1 deletions

View File

@ -144,9 +144,10 @@ VideoBox::VideoBox(wxWindow *parent)
videoBottomSizer->Add(VideoPosition,1,wxLEFT|wxALIGN_CENTER,5);
videoBottomSizer->Add(VideoSubsPos,1,wxALIGN_CENTER,0);
VideoSizer = new wxBoxSizer(wxVERTICAL);
VideoSizer->Add(topSizer,1,wxEXPAND,0);
VideoSizer->Add(topSizer,0,wxEXPAND,0);
VideoSizer->Add(videoSliderSizer,0,wxEXPAND,0);
VideoSizer->Add(videoBottomSizer,0,wxEXPAND,0);
VideoSizer->AddStretchSpacer(1);
SetSizer(VideoSizer);
}

View File

@ -408,6 +408,8 @@ void VideoDisplay::UpdateSize() {
// Layout
box->GetParent()->Layout();
SetClientSize(w,h);
GetSize(&_w,&_h);
SetMaxSize(wxSize(_w,_h));
// Refresh
locked = false;