summaryrefslogtreecommitdiff
path: root/kms++/src/omap/omapframebuffer.cpp
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-02-05 12:03:34 +0200
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>2025-03-26 15:44:00 +0200
commita35d57fa9088fbccd468ad095c89aba096b2494e (patch)
tree24b73249e7e741e36ed1b03a9b92461fd36bfa72 /kms++/src/omap/omapframebuffer.cpp
parent1936a703bf1a3b27db9bb4d503b861f6d1fa2e74 (diff)
Use the fourcc helpers
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'kms++/src/omap/omapframebuffer.cpp')
-rw-r--r--kms++/src/omap/omapframebuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kms++/src/omap/omapframebuffer.cpp b/kms++/src/omap/omapframebuffer.cpp
index 35852bf..9f9d7c7 100644
--- a/kms++/src/omap/omapframebuffer.cpp
+++ b/kms++/src/omap/omapframebuffer.cpp
@@ -133,7 +133,7 @@ void OmapFramebuffer::Create(uint32_t width, uint32_t height, PixelFormat format
uint32_t pitches[4] = { m_planes[0].stride, m_planes[1].stride };
uint32_t offsets[4] = { m_planes[0].offset, m_planes[1].offset };
uint32_t id;
- int r = drmModeAddFB2(card().fd(), width, height, (uint32_t)format,
+ int r = drmModeAddFB2(card().fd(), width, height, pixel_format_to_fourcc(format),
bo_handles, pitches, offsets, &id, 0);
if (r)
throw invalid_argument(string("drmModeAddFB2 failed: ") + strerror(errno));