From a6f1ad15608f6fb715e22df89a4b9792b6f1281a Mon Sep 17 00:00:00 2001 From: Vaxry Date: Thu, 18 Jul 2024 12:30:43 +0200 Subject: [PATCH] drm: fixup cursor fb rotation cases --- src/backend/drm/DRM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 6bb133a..292c66f 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1237,7 +1237,7 @@ void Aquamarine::SDRMConnector::rollbackCommit(const SDRMConnectorCommitData& da void Aquamarine::SDRMConnector::onPresent() { crtc->primary->last = crtc->primary->front; crtc->primary->front = crtc->primary->back; - if (crtc->cursor && crtc->cursor->back /* Don't shift if it hasn't updated */) { + if (crtc->cursor) { crtc->cursor->last = crtc->cursor->front; crtc->cursor->front = crtc->cursor->back; }