mirror of https://github.com/odrling/Aegisub
Rerender video display after EVT_PAINT
Otherwise the video display will be blank after restore from minimized.
This commit is contained in:
parent
1bda6052b6
commit
a520f8a4a3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue