Revert "video zoom: Fix crash on windows when making detached video too small"
This reverts commit b38493ee68
.
This commit is contained in:
parent
2bcf0c7555
commit
6cc22750c1
1 changed files with 1 additions and 1 deletions
|
@ -360,7 +360,7 @@ void VideoDisplay::OnSizeEvent(wxSizeEvent &event) {
|
||||||
/* If the video is moving, we only need to update the size in this case */
|
/* If the video is moving, we only need to update the size in this case */
|
||||||
else if (videoSize.GetWidth() == 0 && videoSize.GetHeight() == 0)
|
else if (videoSize.GetWidth() == 0 && videoSize.GetHeight() == 0)
|
||||||
videoSize = GetClientSize() * videoZoomValue * scale_factor;
|
videoSize = GetClientSize() * videoZoomValue * scale_factor;
|
||||||
windowZoomValue = double(std::max(GetClientSize().GetHeight(), 1) * scale_factor) / con->project->VideoProvider()->GetHeight();
|
windowZoomValue = double(GetClientSize().GetHeight() * scale_factor) / con->project->VideoProvider()->GetHeight();
|
||||||
zoomBox->ChangeValue(fmt_wx("%g%%", windowZoomValue * 100.));
|
zoomBox->ChangeValue(fmt_wx("%g%%", windowZoomValue * 100.));
|
||||||
con->ass->Properties.video_zoom = windowZoomValue;
|
con->ass->Properties.video_zoom = windowZoomValue;
|
||||||
UpdateSize();
|
UpdateSize();
|
||||||
|
|
Loading…
Reference in a new issue