using std::max;
SimpleVideoView::SimpleVideoView (FilmViewer* viewer, wxWindow* parent)
- : _viewer (viewer)
+ : VideoView (viewer)
{
_panel = new wxPanel (parent);
_panel->SetBackgroundColour (*wxBLACK);
_panel->Bind (wxEVT_PAINT, boost::bind (&SimpleVideoView::paint, this));
+ _panel->Bind (wxEVT_SIZE, boost::bind(boost::ref(Sized)));
}
void
dc.DrawRectangle (inter_position.x, inter_position.y + (panel_size.GetHeight() - out_size.height) / 2, inter_size.width, inter_size.height);
}
}
+
+void
+SimpleVideoView::update ()
+{
+ _panel->Refresh ();
+ _panel->Update ();
+}