summaryrefslogtreecommitdiff
path: root/src/wx/gl_video_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-11-20 22:25:40 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-08 21:56:47 +0100
commit89780827d5d6ec9127eae0108d10f71dc79d1a72 (patch)
tree5dcdb70685504a21c2d125fdbdc39f179246c456 /src/wx/gl_video_view.cc
parent83c9e9c858072ab919916269790dcc65565fdd25 (diff)
Implement GLView::update.
Diffstat (limited to 'src/wx/gl_video_view.cc')
-rw-r--r--src/wx/gl_video_view.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc
index 836b3eb35..934a91ad5 100644
--- a/src/wx/gl_video_view.cc
+++ b/src/wx/gl_video_view.cc
@@ -61,7 +61,7 @@ GLVideoView::GLVideoView (FilmViewer* viewer, wxWindow *parent)
, _one_shot (false)
{
_canvas = new wxGLCanvas (parent, wxID_ANY, 0, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE);
- _canvas->Bind (wxEVT_PAINT, boost::bind(&GLVideoView::paint, this));
+ _canvas->Bind (wxEVT_PAINT, boost::bind(&GLVideoView::update, this));
_canvas->Bind (wxEVT_SIZE, boost::bind(boost::ref(Sized)));
_canvas->Bind (wxEVT_CREATE, boost::bind(&GLVideoView::create, this));
@@ -131,20 +131,12 @@ check_gl_error (char const * last)
}
void
-GLVideoView::paint ()
-{
- request_one_shot ();
-}
-
-void
GLVideoView::update ()
{
if (!_canvas->IsShownOnScreen()) {
return;
}
- /* XXX_b */
-// wxClientDC dc (_canvas);
-// draw ();
+ request_one_shot ();
}
void