Always call ::draw() even when we have no image.
authorCarl Hetherington <cth@carlh.net>
Sun, 3 Oct 2021 19:46:07 +0000 (21:46 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 3 Oct 2021 19:46:07 +0000 (21:46 +0200)
Otherwise the screen doesn't get cleared properly when no film is
loaded.

src/wx/gl_video_view.cc

index 5d9f2742fa6b165ed94b611b6464cab94b4f0d96..2f5b27da8bdd6c35ec3e6c68e0ae047543442c28 100644 (file)
@@ -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);
        }
 }