diff --git a/src/backends/drm/drm_backend.h b/src/backends/drm/drm_backend.h index d10edd74a3..5cc084ae3c 100644 --- a/src/backends/drm/drm_backend.h +++ b/src/backends/drm/drm_backend.h @@ -48,12 +48,6 @@ public: Outputs outputs() const override; Outputs enabledOutputs() const override; - QVector drmOutputs() const { - return m_outputs; - } - QVector drmEnabledOutputs() const { - return m_enabledOutputs; - } void enableOutput(DrmAbstractOutput *output, bool enable); diff --git a/src/backends/drm/scene_qpainter_drm_backend.cpp b/src/backends/drm/scene_qpainter_drm_backend.cpp index 945e4defb9..2f49f845b2 100644 --- a/src/backends/drm/scene_qpainter_drm_backend.cpp +++ b/src/backends/drm/scene_qpainter_drm_backend.cpp @@ -23,9 +23,9 @@ DrmQPainterBackend::DrmQPainterBackend(DrmBackend *backend, DrmGpu *gpu) , m_backend(backend) , m_gpu(gpu) { - const auto outputs = m_backend->drmOutputs(); + const auto outputs = m_backend->enabledOutputs(); for (auto output: outputs) { - initOutput(output); + initOutput(static_cast(output)); } connect(m_gpu, &DrmGpu::outputEnabled, this, &DrmQPainterBackend::initOutput); connect(m_gpu, &DrmGpu::outputDisabled, this,