diff options
Diffstat (limited to 'src/waveform/widgets/glrgbwaveformwidget.cpp')
-rw-r--r-- | src/waveform/widgets/glrgbwaveformwidget.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/waveform/widgets/glrgbwaveformwidget.cpp b/src/waveform/widgets/glrgbwaveformwidget.cpp index 81719568b7..53d50ee20e 100644 --- a/src/waveform/widgets/glrgbwaveformwidget.cpp +++ b/src/waveform/widgets/glrgbwaveformwidget.cpp @@ -14,25 +14,20 @@ GLRGBWaveformWidget::GLRGBWaveformWidget(const QString& group, QWidget* parent) : GLWaveformWidgetAbstract(group, parent) { - qDebug() << "Created QGLWidget. Context" - << "Valid:" << context()->isValid() - << "Sharing:" << context()->isSharing(); + qDebug() << "Created WGLWidget. Context" + << "Valid:" << isContextValid() + << "Sharing:" << isContextSharing(); addRenderer<GLWaveformRenderBackground>(); addRenderer<WaveformRendererEndOfTrack>(); addRenderer<WaveformRendererPreroll>(); addRenderer<WaveformRenderMarkRange>(); #if !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2) - m_pGlRenderer = addRenderer<GLWaveformRendererRGB>(); + addRenderer<GLWaveformRendererRGB>(); #endif // !defined(QT_NO_OPENGL) && !defined(QT_OPENGL_ES_2) addRenderer<WaveformRenderBeat>(); addRenderer<WaveformRenderMark>(); - setAttribute(Qt::WA_NoSystemBackground); - setAttribute(Qt::WA_OpaquePaintEvent); - - setAutoBufferSwap(false); - m_initSuccess = init(); } @@ -55,7 +50,7 @@ mixxx::Duration GLRGBWaveformWidget::render() { timer.start(); // QPainter makes QGLContext::currentContext() == context() // this may delayed until previous buffer swap finished - QPainter painter(this); + QPainter painter(paintDevice()); t1 = timer.restart(); draw(&painter, nullptr); //t2 = timer.restart(); |