From 28c7e7dec3ee68ff85b6585ba5bf5d33a5d6241d Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Fri, 18 Nov 2011 01:20:47 +0000 Subject: [PATCH] Bind wxEVT_SIZE in the video display even when attached. There doesn't seem to be any reason not to and it fixes some bugs with resizing the main window. Originally committed to SVN as r5873. --- aegisub/src/video_display.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aegisub/src/video_display.cpp b/aegisub/src/video_display.cpp index 8afdda058..c08352b53 100644 --- a/aegisub/src/video_display.cpp +++ b/aegisub/src/video_display.cpp @@ -118,9 +118,7 @@ VideoDisplay::VideoDisplay( slots.push_back(con->videoController->AddARChangeListener(&VideoDisplay::UpdateSize, this)); Bind(wxEVT_PAINT, std::tr1::bind(&VideoDisplay::Render, this)); - if (freeSize) { - Bind(wxEVT_SIZE, &VideoDisplay::OnSizeEvent, this); - } + Bind(wxEVT_SIZE, &VideoDisplay::OnSizeEvent, this); Bind(wxEVT_CONTEXT_MENU, &VideoDisplay::OnContextMenu, this); Bind(wxEVT_ENTER_WINDOW, &VideoDisplay::OnMouseEvent, this); Bind(wxEVT_KEY_DOWN, &VideoDisplay::OnKeyDown, this);