Update the value of the zoom dropdown when the detached video dialog is resized

Originally committed to SVN as r6143.
This commit is contained in:
Thomas Goyne 2011-12-22 21:32:09 +00:00
parent 43b6d910fb
commit be3e9dae68
1 changed files with 3 additions and 0 deletions

View File

@ -289,6 +289,9 @@ void VideoDisplay::UpdateSize(bool force) {
viewport_top = viewport_bottom = delta / 2;
viewport_height = h - delta;
}
zoomValue = double(h) / vidH;
zoomBox->ChangeValue(wxString::Format("%g%%", zoomValue * 100.));
}
else {
wxEventBlocker blocker(this);