diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-01-10 00:14:28 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-01-10 00:14:28 +0000 |
| commit | d9708655110a6127ced56039c8bbdb6e8403479a (patch) | |
| tree | 0f36729288b2f52ae09bb3a5ed6f877e3d1bd4c2 | |
| parent | 6b4ab3e7e631fe4b790ab63abecce765df2897db (diff) | |
swaroop: speculative fix for background image appearing between playlist items.
| -rw-r--r-- | src/wx/film_viewer.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index 5c1b59ad6..e7d51624a 100644 --- 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; |
