Skip to content

Commit

Permalink
drm: fixup cursor fb rotation cases
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 18, 2024
1 parent dcac376 commit a6f1ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a6f1ad1

Please sign in to comment.