From be3e9dae6881733062e44959f73399b719567eb2 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Dec 2011 21:32:09 +0000 Subject: [PATCH] Update the value of the zoom dropdown when the detached video dialog is resized Originally committed to SVN as r6143. --- aegisub/src/video_display.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aegisub/src/video_display.cpp b/aegisub/src/video_display.cpp index 45c4f0293..04b4ad9d3 100644 --- a/aegisub/src/video_display.cpp +++ b/aegisub/src/video_display.cpp @@ -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);