projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b4ab3e
)
swaroop: speculative fix for background image appearing between playlist items.
author
Carl Hetherington
<cth@carlh.net>
Thu, 10 Jan 2019 00:14:28 +0000
(
00:14
+0000)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 10 Jan 2019 00:14:28 +0000
(
00:14
+0000)
src/wx/film_viewer.cc
patch
|
blob
|
history
diff --git
a/src/wx/film_viewer.cc
b/src/wx/film_viewer.cc
index 5c1b59ad6a89efd87cdbb38b266dfb2b1ee452f2..e7d51624ac182e303127e461c873013211f81543 100644
(file)
--- a/
src/wx/film_viewer.cc
+++ b/
src/wx/film_viewer.cc
@@
-330,7
+330,12
@@
FilmViewer::paint_panel ()
{
wxPaintDC dc (_panel);
- if (!_frame || !_film || !_out_size.width || !_out_size.height || _out_size != _frame->size()) {
+ if (!_out_size.width || !_out_size.height || _out_size != _frame->size()) {
+ dc.Clear ();
+ return;
+ }
+
+ if (!_frame || !_film) {
dc.Clear ();
maybe_draw_background_image (dc);
return;