]> git.sesse.net Git - kdenlive/blobdiff - src/videoglwidget.cpp
fixed gl widget on mac (did not resize anymore)
[kdenlive] / src / videoglwidget.cpp
index cbe08e3838c19826384e6d1870fedbef15787535..219a96a87f6580ffdfb0be892db8193d585d4ee1 100644 (file)
@@ -48,8 +48,13 @@ void VideoGLWidget::initializeGL()
     glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
 }
 
+void VideoGLWidget::resizeEvent(QResizeEvent* event)
+{
+    resizeGL(event->size().width(),event->size().height());
+}
 void VideoGLWidget::resizeGL(int width, int height)
 {
+
     double this_aspect = (double) width / height;
 
     // Special case optimisation to negate odd effect of sample aspect ratio