Rerender video display after EVT_PAINT

Otherwise the video display will be blank after restore from minimized.
This commit is contained in:
wangqr 2019-11-10 23:17:37 -05:00
parent 1bda6052b6
commit a520f8a4a3
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ VideoDisplay::VideoDisplay(wxToolBar *toolbar, bool freeSize, wxComboBox *zoomBo
con->videoController->AddARChangeListener(&VideoDisplay::UpdateSize, this),
});
Bind(wxEVT_PAINT, std::bind(&VideoDisplay::Render, this));
Bind(wxEVT_UPDATE_UI, &VideoDisplay::OnUpdateUIEvent, this);
Bind(wxEVT_SIZE, &VideoDisplay::OnSizeEvent, this);
Bind(wxEVT_CONTEXT_MENU, &VideoDisplay::OnContextMenu, this);