diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-02-05 12:03:34 +0200 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2025-03-26 15:44:00 +0200 |
| commit | a35d57fa9088fbccd468ad095c89aba096b2494e (patch) | |
| tree | 24b73249e7e741e36ed1b03a9b92461fd36bfa72 /kms++/src/framebuffer.cpp | |
| parent | 1936a703bf1a3b27db9bb4d503b861f6d1fa2e74 (diff) | |
Use the fourcc helpers
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'kms++/src/framebuffer.cpp')
| -rw-r--r-- | kms++/src/framebuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++/src/framebuffer.cpp b/kms++/src/framebuffer.cpp index 3a76b73..773cf4b 100644 --- a/kms++/src/framebuffer.cpp +++ b/kms++/src/framebuffer.cpp @@ -25,7 +25,7 @@ Framebuffer::Framebuffer(Card& card, uint32_t id) if (fb) { m_width = fb->width; m_height = fb->height; - m_format = (PixelFormat)fb->pixel_format; + m_format = fourcc_to_pixel_format(fb->pixel_format); drmModeFreeFB2(fb); } else { |
