Tidy up sized emissions from VideoView.
[dcpomatic.git] / src / wx / gl_video_view.cc
index f5b8ef68a3275b14d29f3d2c710eba50d090fef2..d1e7c7326e3d43a90554f28eb61163639e17ee29 100644 (file)
@@ -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);