summaryrefslogtreecommitdiff
path: root/src/wx/gl_video_view.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-09 17:59:10 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:55 +0100
commitfc4f75abd3b062e8297990a482e77e32458cd169 (patch)
treebb562bd9ec330f0c5973fd6e796bdd19adfd4ac1 /src/wx/gl_video_view.cc
parentf9db80a8e61cedd001d10b555d0798798a773668 (diff)
Tidy up sized emissions from VideoView.
Diffstat (limited to 'src/wx/gl_video_view.cc')
-rw-r--r--src/wx/gl_video_view.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wx/gl_video_view.cc b/src/wx/gl_video_view.cc
index f5b8ef68a..d1e7c7326 100644
--- a/src/wx/gl_video_view.cc
+++ b/src/wx/gl_video_view.cc
@@ -41,6 +41,7 @@ GLVideoView::GLVideoView (wxWindow *parent)
_canvas = new wxGLCanvas (parent, wxID_ANY, 0, wxDefaultPosition, wxDefaultSize, wxFULL_REPAINT_ON_RESIZE);
_context = new wxGLContext (_canvas);
_canvas->Bind (wxEVT_PAINT, boost::bind(&GLVideoView::paint, this, _1));
+ _canvas->Bind (wxEVT_SIZE, boost::bind(boost::ref(Sized)));
glGenTextures (1, &_id);
glBindTexture (GL_TEXTURE_2D, _id);