Skip to content

Commit

Permalink
gbm: don't select opaque pixel formats for cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Sep 7, 2024
1 parent a8eb8ae commit e458ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/allocator/GBM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static SDRMFormat guessFormatFrom(std::vector<SDRMFormat> formats, bool cursor,
return *it;
}

if (!scanout) {
if (!scanout && !cursor /* don't set opaque for cursor plane */) {
if (auto it = std::find_if(formats.begin(), formats.end(), [](const auto& f) { return f.drmFormat == DRM_FORMAT_ARGB8888 || f.drmFormat == DRM_FORMAT_ABGR8888; });
it != formats.end())
return *it;
Expand Down

0 comments on commit e458ad8

Please sign in to comment.