From a520f8a4a382dc0471c0447d3dfb0b2b034bb6a9 Mon Sep 17 00:00:00 2001 From: wangqr Date: Sun, 10 Nov 2019 23:17:37 -0500 Subject: [PATCH] Rerender video display after EVT_PAINT Otherwise the video display will be blank after restore from minimized. --- src/video_display.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video_display.cpp b/src/video_display.cpp index 5e31bcf52..8b7923bd1 100644 --- a/src/video_display.cpp +++ b/src/video_display.cpp @@ -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);