diff --git a/src/plugins/platforms/drm/drm_pipeline.cpp b/src/plugins/platforms/drm/drm_pipeline.cpp index 1ca3b79ca7..5d2328a7d7 100644 --- a/src/plugins/platforms/drm/drm_pipeline.cpp +++ b/src/plugins/platforms/drm/drm_pipeline.cpp @@ -314,7 +314,7 @@ bool DrmPipeline::setCursor(const QSharedPointer &buffer, const Q } const QSize &s = buffer ? buffer->size() : QSize(64, 64); int ret = drmModeSetCursor2(m_gpu->fd(), m_crtc->id(), buffer ? buffer->handle() : 0, s.width(), s.height(), hotspot.x(), hotspot.y()); - if (ret == ENOTSUP) { + if (ret == -ENOTSUP) { // for NVIDIA case that does not support drmModeSetCursor2 ret = drmModeSetCursor(m_gpu->fd(), m_crtc->id(), buffer ? buffer->handle() : 0, s.width(), s.height()); }