diff options
Diffstat (limited to 'src')
| -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; |
