{
wxPaintDC dc (_panel);
- if (!_out_size.width || !_out_size.height || (_frame && _out_size != _frame->size())) {
+ if (!_out_size.width || !_out_size.height || !_frame || _out_size != _frame->size()) {
dc.Clear ();
return;
}
- if (!_frame || !_film) {
+ if (!_film) {
dc.Clear ();
maybe_draw_background_image (dc);
return;
}
- if (_video_position == DCPTime() && maybe_draw_background_image (dc)) {
- return;
- }
-
wxImage frame (_out_size.width, _out_size.height, _frame->data()[0], true);
wxBitmap frame_bitmap (frame);
dc.DrawBitmap (frame_bitmap, 0, max(0, (_panel_size.height - _out_size.height) / 2));