mirror of https://github.com/odrling/Aegisub
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:
parent
3496022b15
commit
5ead3d4230
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -408,6 +408,8 @@ void VideoDisplay::UpdateSize() {
|
|||
// Layout
|
||||
box->GetParent()->Layout();
|
||||
SetClientSize(w,h);
|
||||
GetSize(&_w,&_h);
|
||||
SetMaxSize(wxSize(_w,_h));
|
||||
|
||||
// Refresh
|
||||
locked = false;
|
||||
|
|
Loading…
Reference in New Issue