From: Carl Hetherington Date: Sun, 3 Oct 2021 19:46:07 +0000 (+0200) Subject: Always call ::draw() even when we have no image. X-Git-Tag: v2.15.166~8 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=6324b792da5d1e99425185ab92f3de0c6b81c3dd Always call ::draw() even when we have no image. Otherwise the screen doesn't get cleared properly when no film is loaded. --- diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc index 5d9f2742f..2f5b27da8 100644 --- a/src/wx/gl_video_view.cc +++ b/src/wx/gl_video_view.cc @@ -695,7 +695,11 @@ GLVideoView::set_image_and_draw () auto pv = player_video().first; if (pv) { set_image (pv); - draw (); + } + + draw (); + + if (pv) { _viewer->image_changed (pv); } }