summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-09 00:55:00 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:55 +0100
commitf54283f3ad09b896e7b204b76c12e6061d0405e0 (patch)
treec5cb36ff5c15902e2a9c917cefd88e0a6180979d /src
parent017bb6a9c8521092c245739e12925dd50f7581ff (diff)
Tweaks to not-yet-built SimpleVideoView.
Diffstat (limited to 'src')
-rw-r--r--src/wx/simple_video_view.cc18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/wx/simple_video_view.cc b/src/wx/simple_video_view.cc
index 895a072a0..3cc14625e 100644
--- a/src/wx/simple_video_view.cc
+++ b/src/wx/simple_video_view.cc
@@ -29,12 +29,11 @@ SimpleVideoView::SimpleVideoView (wxWindow* parent)
_panel->SetBackgroundStyle (wxBG_STYLE_PAINT);
_panel->SetBackgroundColour (*wxBLACK);
- _panel->Bind (wxEVT_PAINT, boost::bind (&SimpleVideoView::paint_panel, this));
- _panel->Bind (wxEVT_SIZE, boost::bind (&SimpleVideoView::panel_sized, this, _1));
+ _panel->Bind (wxEVT_PAINT, boost::bind (&SimpleVideoView::paint, this));
}
void
-SimpleVideoView::paint_panel ()
+SimpleVideoView::paint ()
{
wxPaintDC dc (_panel);
@@ -103,16 +102,3 @@ SimpleVideoView::paint_panel ()
dc.DrawRectangle (_inter_position.x, _inter_position.y + (_panel_size.height - _out_size.height) / 2, _inter_size.width, _inter_size.height);
}
}
-
-void
-SimpleVideoView::panel_sized (wxSizeEvent& ev)
-{
- _panel_size.width = ev.GetSize().GetWidth();
- _panel_size.height = ev.GetSize().GetHeight();
-
- calculate_sizes ();
- if (!quick_refresh()) {
- slow_refresh ();
- }
- PositionChanged ();
-}