From a35d57fa9088fbccd468ad095c89aba096b2494e Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 5 Feb 2025 12:03:34 +0200 Subject: Use the fourcc helpers Signed-off-by: Tomi Valkeinen --- kms++/src/framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kms++/src/framebuffer.cpp') 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 { -- cgit v1.2.3