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.
This commit is contained in:
Thomas Goyne 2011-11-18 01:20:47 +00:00
parent ff03168f4c
commit 28c7e7dec3
1 changed files with 1 additions and 3 deletions

View File

@ -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);