projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
017bb6a
)
Tweaks to not-yet-built SimpleVideoView.
author
Carl Hetherington
<cth@carlh.net>
Wed, 8 May 2019 23:55:00 +0000
(
00:55
+0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 10 May 2019 22:43:55 +0000
(23:43 +0100)
src/wx/simple_video_view.cc
patch
|
blob
|
history
diff --git
a/src/wx/simple_video_view.cc
b/src/wx/simple_video_view.cc
index 895a072a0e74ca0cacc158d3c1bd22717f8d40e9..3cc14625ea1876f6566d077180e3ab602a756f3b 100644
(file)
--- 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->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
}
void
-SimpleVideoView::paint
_panel
()
+SimpleVideoView::paint ()
{
wxPaintDC dc (_panel);
{
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);
}
}
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 ();
-}