summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-10-03 21:46:07 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-03 21:46:07 +0200
commit6324b792da5d1e99425185ab92f3de0c6b81c3dd (patch)
tree1298fc60265982d1d626a9bc6c87ea36a1304d04 /src
parent1b6b469e927de081367b9cf861f0a551ee43422b (diff)
Always call ::draw() even when we have no image.
Otherwise the screen doesn't get cleared properly when no film is loaded.
Diffstat (limited to 'src')
-rw-r--r--src/wx/gl_video_view.cc6
1 files changed, 5 insertions, 1 deletions
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);
}
}