projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b6b469
)
Always call ::draw() even when we have no image.
author
Carl Hetherington
<cth@carlh.net>
Sun, 3 Oct 2021 19:46:07 +0000
(21:46 +0200)
committer
Carl 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
patch
|
blob
|
history
diff --git
a/src/wx/gl_video_view.cc
b/src/wx/gl_video_view.cc
index 5d9f2742fa6b165ed94b611b6464cab94b4f0d96..2f5b27da8bdd6c35ec3e6c68e0ae047543442c28 100644
(file)
--- 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);
}
}