Skip to content

Commit

Permalink
card: Fix use of find format
Browse files Browse the repository at this point in the history
  • Loading branch information
tomba committed Aug 28, 2024
1 parent e4dd4f7 commit 4c03008
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kms/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def get_framebuffer(self, id):
res.fb_id = id
fcntl.ioctl(self.fd, kms.uapi.DRM_IOCTL_MODE_GETFB2, res, True)

format = kms.PixelFormats.find_v4l2_fourcc_unsupported(res.pixel_format)
format = kms.PixelFormats.find_drm_fourcc(res.pixel_format)

planes = []
for i in range(len(format.planes)):
Expand Down

0 comments on commit 4c03008

Please sign in to comment.